forked from kmscon/kmscon
-
Notifications
You must be signed in to change notification settings - Fork 33
Add rotation support #147
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Add rotation support #147
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add rotation support in the core of kmscon. You can specify rotation by command line, or in kmscon.conf It also adds two keyboard shortcut, LOGO+"+" and LOGO+"-" to rotate the current output Co-authored-by: Jocelyn Falempe <jfalempe@redhat.com> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
0b721f4 to
846a42c
Compare
This will help to add rotation support for pixman, bbulk and bblit. When looking for a glyph, it will rotate it, and save it in the cache. So a simple blit can be used each time this glyph is drawn. Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
So that bblit and pixman renderer can use it too. Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Uses opengl shaders to rotate the glyph Co-authored-by: Jocelyn Falempe <jfalempe@redhat.com> Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
This reverts commit 1275f44. With the rotation support, the pixman renderer uses an intermediate rotate glyph with a 4 byptes alignement, so this is no more needed. Signed-off-by: Jocelyn Falempe <jfalempe@redhat.com>
846a42c to
3874c95
Compare
Collaborator
Author
|
@MacSlow: If you have time, can you take a quick look at this PR? I'll merge it end of week, if I get no comments. |
I will try later today or tomorrow to review the PR. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I've adapted the patches from MacSlow, and added support for the pixman, bbulk and bblit renderers.
It's the rotation part of #75.