]> git.mdlowis.com Git - proto/labwc.git/commit
Use pre-multiplied colors by default
authorConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 6 Apr 2024 15:46:30 +0000 (17:46 +0200)
committerConsolatis <35009135+Consolatis@users.noreply.github.com>
Sat, 6 Apr 2024 20:54:09 +0000 (22:54 +0200)
commitc35ba02ffad0e68f5a9d0d19361e965fd15c4e3e
treea0f4a1ae112a3c8b2690b6922ab4bc04af24b0db
parent33859138cf97eef2d8fc1e4744ac673101dd156b
Use pre-multiplied colors by default

wlr_scene_rects expect their color to be pre-multiplied
while cairo_set_source_rgba() expects them to not be
pre-multiplied. With this patch we now use premultiplied
colors internally by default and then reverse it when
setting cairo colors.

This ensures the titlebar uses a consistent color in case
it was defined with some transparency by the user.

Fixes: #1684
src/common/graphic-helpers.c
src/overlay.c
src/theme.c