1
0
Fork 0
forked from wry/wry

wayland: implement alpha_modifier_v1

This commit is contained in:
Julian Orth 2024-03-18 19:18:30 +01:00
parent 131f0481e8
commit ff54a8ab96
37 changed files with 655 additions and 89 deletions

View file

@ -216,6 +216,7 @@ impl GuiElement for Button {
let (tx, ty) = r.scale_point_f(x1 + self.tex_off_x.get(), y1 + self.tex_off_y.get());
r.render_texture(
&tex.texture,
None,
tx.round() as _,
ty.round() as _,
None,
@ -320,6 +321,7 @@ impl GuiElement for Label {
let (tx, ty) = r.scale_point_f(x, y);
r.render_texture(
&tex.texture,
None,
tx.round() as _,
ty.round() as _,
None,