Skip to content

Conversation

@kdj0c
Copy link
Collaborator

@kdj0c kdj0c commented Oct 22, 2025

I've adapted the patches from MacSlow, and added support for the pixman, bbulk and bblit renderers.

  • Simplified the orientation enum.
  • Remove angle from gltex, and uses direct cos and sin value (1.0 or 0.0), as we only do multiple of 90 degree rotation.
  • Added an helper, to avoid duplication between pixman, bbulk and bblit.
  • Tested with the recent "double width overflow" fonts.

It's the rotation part of #75.

MacSlow and others added 2 commits October 23, 2025 16:41
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>
Jocelyn Falempe and others added 7 commits October 31, 2025 18:23
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>
@kdj0c
Copy link
Collaborator Author

kdj0c commented Nov 4, 2025

@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.

@MacSlow
Copy link

MacSlow commented Nov 4, 2025

@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.

@kdj0c kdj0c mentioned this pull request Nov 4, 2025
10 tasks
@kdj0c kdj0c merged commit 52b63e6 into Aetf:main Nov 10, 2025
1 check passed
@kdj0c kdj0c deleted the rotation_support branch December 5, 2025 10:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants