Skip to content

Commit

Permalink
pico: stop pretending PicoVision is RGB565
Browse files Browse the repository at this point in the history
  • Loading branch information
Daft-Freak committed Sep 29, 2023
1 parent 8a21799 commit 6e0d533
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions 32blit-pico/board/pimoroni_picovision/config.h
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
#pragma once

#define DEFAULT_SCREEN_FORMAT PixelFormat::BGR555

// native
#define SD_CLK 10
#define SD_CMD 11
Expand Down
2 changes: 1 addition & 1 deletion 32blit-pico/display_picovision.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 6e0d533

Please sign in to comment.