mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-03 16:10:59 +00:00
Remove dithering from menu_view, themed decorator
With the change from RGB565 to RGB888, the application of dithering has become obsolete. Issue #3784
This commit is contained in:
parent
d21bc8268b
commit
2a4adc895c
@ -22,9 +22,7 @@
|
|||||||
#include <os/surface.h>
|
#include <os/surface.h>
|
||||||
#include <os/pixel_alpha8.h>
|
#include <os/pixel_alpha8.h>
|
||||||
#include <os/pixel_rgb888.h>
|
#include <os/pixel_rgb888.h>
|
||||||
|
#include <blit/painter.h>
|
||||||
/* gems includes */
|
|
||||||
#include <gems/dither_painter.h>
|
|
||||||
|
|
||||||
|
|
||||||
struct Gui_buffer
|
struct Gui_buffer
|
||||||
@ -131,7 +129,7 @@ struct Gui_buffer
|
|||||||
|
|
||||||
surface.clip(clip_rect);
|
surface.clip(clip_rect);
|
||||||
|
|
||||||
Dither_painter::paint(surface, texture, Point());
|
Blit_painter::paint(surface, texture, Point());
|
||||||
}
|
}
|
||||||
|
|
||||||
void _update_input_mask()
|
void _update_input_mask()
|
||||||
@ -161,9 +159,12 @@ struct Gui_buffer
|
|||||||
{
|
{
|
||||||
/* represent back buffer as texture */
|
/* represent back buffer as texture */
|
||||||
Genode::Texture<Pixel_rgb888>
|
Genode::Texture<Pixel_rgb888>
|
||||||
texture(pixel_surface_ds.local_addr<Pixel_rgb888>(),
|
pixel_texture(pixel_surface_ds.local_addr<Pixel_rgb888>(),
|
||||||
alpha_surface_ds.local_addr<unsigned char>(),
|
nullptr, size());
|
||||||
size());
|
|
||||||
|
Genode::Texture<Pixel_alpha8>
|
||||||
|
alpha_texture(alpha_surface_ds.local_addr<Pixel_alpha8>(),
|
||||||
|
nullptr, size());
|
||||||
|
|
||||||
// XXX track dirty rectangles
|
// XXX track dirty rectangles
|
||||||
Rect const clip_rect(Genode::Surface_base::Point(0, 0), size());
|
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<Pixel_alpha8>()
|
Pixel_alpha8 *alpha_base = fb_ds.local_addr<Pixel_alpha8>()
|
||||||
+ mode.bytes_per_pixel()*size().count();
|
+ mode.bytes_per_pixel()*size().count();
|
||||||
|
|
||||||
_convert_back_to_front(pixel_base, texture, clip_rect);
|
_convert_back_to_front(pixel_base, pixel_texture, clip_rect);
|
||||||
_convert_back_to_front(alpha_base, texture, clip_rect);
|
_convert_back_to_front(alpha_base, alpha_texture, clip_rect);
|
||||||
|
|
||||||
_update_input_mask();
|
_update_input_mask();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user