Skip to content

Commit

Permalink
pico: move VGA hires disable to the board config
Browse files Browse the repository at this point in the history
One less use of the DISPLAY_ #defines
  • Loading branch information
Daft-Freak committed Jul 14, 2023
1 parent 86e9e90 commit 6f443b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 5 additions & 0 deletions 32blit-pico/board/vgaboard/config.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#pragma once

#ifndef ALLOW_HIRES
#define ALLOW_HIRES 0 // disable by default, mode switching isn't supported
#endif
4 changes: 0 additions & 4 deletions 32blit-pico/config.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,7 @@
// these are the defaults

#ifndef ALLOW_HIRES
#ifdef DISPLAY_ST7789
#define ALLOW_HIRES 1
#else
#define ALLOW_HIRES 0 // hires is currently not supported for VGA/DVI
#endif
#endif

#ifndef DISPLAY_WIDTH
Expand Down

0 comments on commit 6f443b3

Please sign in to comment.