From 584fb77cc8dbafaf148d4e3872ecf706f6087ef0 Mon Sep 17 00:00:00 2001 From: Andri Yngvason Date: Fri, 2 Feb 2024 22:14:28 +0000 Subject: [PATCH] pixels: Add strings for RGB222 and BGR222 --- src/pixels.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/pixels.c b/src/pixels.c index 949be9d..8d2f34f 100644 --- a/src/pixels.c +++ b/src/pixels.c @@ -657,6 +657,8 @@ const char* rfb_pixfmt_to_string(const struct rfb_pixel_format* fmt) CASE(8, 4, 0): return "XRGB4444"; CASE(0, 4, 8): return "XBGR4444"; CASE(11, 5, 0): return "RGB565"; + CASE(4, 2, 0): return "RGB222"; + CASE(0, 2, 4): return "BGR222"; #undef CASE }