mirror of
https://github.com/genodelabs/genode.git
synced 2025-06-21 16:39:39 +00:00
Change pixel format to 32 bits per pixel
Until now, Genode's framebuffer session interface was based on the RGB565 pixel format. This patch changes the pixel format to 32-bit XRGB where the X part is ignored. It adapts all graphical applications and device drivers accordingly. The patch also adjusts the users of the drivers_interactive packages, assigning 64 MiB RAM and 1500 caps to the drivers subsystem, which is sufficient for covering high resolutions at 32 bits per pixel and to accommodate multi-component USB HID input stacks. Fixes #3784
This commit is contained in:
@ -16,7 +16,7 @@
|
||||
#include <base/heap.h>
|
||||
#include <base/attached_rom_dataspace.h>
|
||||
#include <polygon_gfx/shaded_polygon_painter.h>
|
||||
#include <polygon_gfx/interpolate_rgb565.h>
|
||||
#include <os/pixel_rgb888.h>
|
||||
#include <os/pixel_alpha8.h>
|
||||
#include <nano3d/scene.h>
|
||||
#include <nano3d/sincos_frac16.h>
|
||||
@ -469,7 +469,7 @@ void Component::construct(Genode::Env &env)
|
||||
{
|
||||
enum { UPDATE_RATE_MS = 250 };
|
||||
|
||||
static Cpu_load_display::Scene<Genode::Pixel_rgb565>
|
||||
static Cpu_load_display::Scene<Genode::Pixel_rgb888>
|
||||
scene(env, UPDATE_RATE_MS,
|
||||
Gui::Point(0, 0), Gui::Area(400, 400));
|
||||
}
|
||||
|
Reference in New Issue
Block a user