Commit Graph
4 Commits
Author SHA1 Message Date
waozi 4eaf06b24a Draw Android apps inside their window when the surface is larger
Android gives a raised window, such as the floating picture-in-picture
window, a surface larger than its frame by the shadow on every side, and
keeps that margin after the window opens back to full screen. Kryon drew
from the surface's corner, so the app sat 18 pixels too high and too low
and lost 18 pixels at each side on a 1.75x phone. An activity now reports
its frame size; the viewport lies in the frame's part of the surface and
raylib's mouse offset moves touches there too.
2026-10-11 20:04:07 -03:00
waozi 2935069bb5 Synchronize Android pixel geometry after portrait-first rotations 2026-10-09 01:29:34 -03:00
waozi 0a54b1004c Keep Android's system bar strips black
Apps cleared the whole surface to their canvas color, so the status and
navigation bar strips outside the safe viewport showed the app's
background behind light system icons. ClearAndroidFrame clears those
strips black and fills only the viewport with the canvas color.
2026-09-29 16:40:44 -03:00
waozi 0beb376773 Recover Android surface and safe-area behavior in Ziran 2026-09-27 10:59:34 -03:00