1
0
Fork 0
forked from wry/wry

wl_surface: handle alpha modes

This commit is contained in:
Julian Orth 2026-02-21 14:24:38 +01:00
parent 37674a229c
commit 69ca5d92e7
10 changed files with 82 additions and 25 deletions

View file

@ -7,7 +7,8 @@ use {
fixed::Fixed,
format::ARGB8888,
gfx_api::{
AcquireSync, GfxContext, GfxFramebuffer, GfxTexture, ReleaseSync, needs_render_usage,
AcquireSync, AlphaMode, GfxContext, GfxFramebuffer, GfxTexture, ReleaseSync,
needs_render_usage,
},
ifs::zwlr_layer_shell_v1::OVERLAY,
portal::{
@ -230,6 +231,7 @@ impl GuiElement for Button {
ReleaseSync::None,
false,
srgb_srgb,
AlphaMode::PremultipliedElectrical,
);
}
}
@ -332,6 +334,7 @@ impl GuiElement for Label {
ReleaseSync::None,
false,
color_manager.srgb_gamma22(),
AlphaMode::PremultipliedElectrical,
);
}
}