os: Pixel_input8 type for input-mask access

Issue #5351
This commit is contained in:
Norman Feske 2024-09-25 11:11:34 +02:00 committed by Christian Helmuth
parent b303fe1098
commit 336d481726
2 changed files with 5 additions and 3 deletions

View File

@ -18,9 +18,11 @@
namespace Genode {
using Pixel_alpha8 = Genode::Pixel_rgba<uint8_t, Genode::Surface_base::ALPHA8,
0, 0, 0, 0, 0, 0, 0xff, 0>;
using Pixel_alpha8 = Pixel_rgba<uint8_t, Surface_base::ALPHA8,
0, 0, 0, 0, 0, 0, 0xff, 0>;
using Pixel_input8 = Pixel_rgba<uint8_t, Surface_base::INPUT8,
0, 0, 0, 0, 0, 0, 0xff, 0>;
/*
* The second pixel parameter is ignored. It can be of any pixel type.

View File

@ -46,7 +46,7 @@ class Genode::Surface_base : Interface
using Point = Rect::Point;
using Area = Rect::Area;
enum Pixel_format { UNKNOWN, RGB565, RGB888, ALPHA8 };
enum Pixel_format { UNKNOWN, RGB565, RGB888, ALPHA8, INPUT8 };
struct Flusher : Interface
{