Skip to content

Commit

Permalink
Set ALLOW_HIRES=0 for platformer example
Browse files Browse the repository at this point in the history
This allows it to build for pico with a 320x240 display and also makes it so there's an example of using this define
  • Loading branch information
Daft-Freak committed Jun 2, 2022
1 parent 9de5225 commit 4d2757b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion examples/platformer/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,8 @@ project (platformer)
find_package (32BLIT CONFIG REQUIRED PATHS ../..)
blit_executable (platformer platformer.cpp)
blit_assets_yaml (platformer assets.yml)
blit_metadata (platformer metadata.yml)
blit_metadata (platformer metadata.yml)

# This removes support for set_screen_mode(hires) for Pico-based devices
# freeing up some extra RAM
target_compile_definitions(platformer PRIVATE ALLOW_HIRES=0)

0 comments on commit 4d2757b

Please sign in to comment.