From 6e0d533331cd549356e493fad482dac1149248cd Mon Sep 17 00:00:00 2001 From: Charlie Birks Date: Wed, 26 Jul 2023 16:10:35 +0100 Subject: [PATCH] pico: stop pretending PicoVision is RGB565 --- 32blit-pico/board/pimoroni_picovision/config.h | 2 ++ 32blit-pico/display_picovision.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/32blit-pico/board/pimoroni_picovision/config.h b/32blit-pico/board/pimoroni_picovision/config.h index 000c9195f..768280419 100644 --- a/32blit-pico/board/pimoroni_picovision/config.h +++ b/32blit-pico/board/pimoroni_picovision/config.h @@ -1,5 +1,7 @@ #pragma once +#define DEFAULT_SCREEN_FORMAT PixelFormat::BGR555 + // native #define SD_CLK 10 #define SD_CMD 11 diff --git a/32blit-pico/display_picovision.cpp b/32blit-pico/display_picovision.cpp index 8df21a996..2472a8d81 100644 --- a/32blit-pico/display_picovision.cpp +++ b/32blit-pico/display_picovision.cpp @@ -371,7 +371,7 @@ bool display_render_needed() { } bool display_mode_supported(blit::ScreenMode new_mode, const blit::SurfaceTemplate &new_surf_template) { - if(new_surf_template.format != blit::PixelFormat::RGB565) // this is a lie + if(new_surf_template.format != blit::PixelFormat::BGR555) return false; if(find_resolution(new_surf_template.bounds) != -1)