diff --git a/repos/gems/include/gems/gui_buffer.h b/repos/gems/include/gems/gui_buffer.h index 4be377e71c..283a0467f7 100644 --- a/repos/gems/include/gems/gui_buffer.h +++ b/repos/gems/include/gems/gui_buffer.h @@ -22,9 +22,7 @@ #include #include #include - -/* gems includes */ -#include +#include struct Gui_buffer @@ -131,7 +129,7 @@ struct Gui_buffer surface.clip(clip_rect); - Dither_painter::paint(surface, texture, Point()); + Blit_painter::paint(surface, texture, Point()); } void _update_input_mask() @@ -161,9 +159,12 @@ struct Gui_buffer { /* represent back buffer as texture */ Genode::Texture - texture(pixel_surface_ds.local_addr(), - alpha_surface_ds.local_addr(), - size()); + pixel_texture(pixel_surface_ds.local_addr(), + nullptr, size()); + + Genode::Texture + alpha_texture(alpha_surface_ds.local_addr(), + nullptr, size()); // XXX track dirty rectangles Rect const clip_rect(Genode::Surface_base::Point(0, 0), size()); @@ -172,8 +173,8 @@ struct Gui_buffer Pixel_alpha8 *alpha_base = fb_ds.local_addr() + mode.bytes_per_pixel()*size().count(); - _convert_back_to_front(pixel_base, texture, clip_rect); - _convert_back_to_front(alpha_base, texture, clip_rect); + _convert_back_to_front(pixel_base, pixel_texture, clip_rect); + _convert_back_to_front(alpha_base, alpha_texture, clip_rect); _update_input_mask(); }