View Single Post
Old 11-12-2020, 10:13 AM   #261
NiLuJe
BLAM!
NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.NiLuJe ought to be getting tired of karma fortunes by now.
 
NiLuJe's Avatar
 
Posts: 13,506
Karma: 26047202
Join Date: Jun 2010
Location: Paris, France
Device: Kindle 2i, 3g, 4, 5w, PW, PW2, PW5; Kobo H2O, Forma, Elipsa, Sage, C2E
Okay, a good night's sleep does wonders for your brain .

Yes, this is perfectly normal: a rotation doesn't actually rotate the framebuffer's *content*. It's still the same block of memory, it just gets addressed differently.

Some kernels *may* just zero the full region after a rotation to hide some of that away, but that doesn't seem to be the case on a Kindle.

So, essentially, this works because eInk, where what's on the screen can be completely different than what's on the framebuffer. It works because each and every time, you're refreshing *just* the right region .

As a quick test, if you display an full-screen image, and just *invert* the rotation, that "works", because the memory layout is identical (a scanline is still the same length). But as soon as you change the layout, things start getting funky .

Last edited by NiLuJe; 11-12-2020 at 10:16 AM.
NiLuJe is offline   Reply With Quote