From 96cbe69d1e13163a71a386bfb1cfc2fcfa0c0a85 Mon Sep 17 00:00:00 2001 From: Vladimir Serbinenko Date: Thu, 5 Jan 2023 11:02:36 +0100 Subject: [PATCH] VKEYBD: Support RGB332 backing surface This is efficient on rs90 --- backends/vkeybd/virtual-keyboard-gui.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/backends/vkeybd/virtual-keyboard-gui.cpp b/backends/vkeybd/virtual-keyboard-gui.cpp index 781fcc5418c..caf620b1761 100644 --- a/backends/vkeybd/virtual-keyboard-gui.cpp +++ b/backends/vkeybd/virtual-keyboard-gui.cpp @@ -74,7 +74,9 @@ static void blit(Graphics::Surface *surf_dst, Graphics::Surface *surf_src, int16 if (surf_dst->format.bytesPerPixel != surf_src->format.bytesPerPixel) return; - if (surf_dst->format.bytesPerPixel == 2) + if (surf_dst->format.bytesPerPixel == 1) + blitImplementation(surf_dst, surf_src, x, y, transparent); + else if (surf_dst->format.bytesPerPixel == 2) blitImplementation(surf_dst, surf_src, x, y, transparent); else if (surf_dst->format.bytesPerPixel == 4) blitImplementation(surf_dst, surf_src, x, y, transparent);