Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions uilib/panel.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,6 +353,10 @@ def __init__(
# and the offset remains 0,0 (don't try to scroll)
if box is None:
box = Box((0, 0), lcd.dimensions())
# The root stays opaque even when dimming. It is a blend *destination*:
# 32-bit keeps full 8-bit blend precision, but a dest alpha channel buys
# nothing, and an SRCALPHA root would force the LCD's 565 convert-blit
# down SDL's alpha-blending path (~7x slower).
if image_format is None:
image_format = lcd.default_format()

Expand Down
Loading