Fix PSP build issues
This commit is contained in:
@@ -33,6 +33,8 @@ elseif(DUSK_TARGET_SYSTEM STREQUAL "psp")
|
||||
DISPLAY_SDL2=1
|
||||
DISPLAY_WINDOW_WIDTH_DEFAULT=480
|
||||
DISPLAY_WINDOW_HEIGHT_DEFAULT=272
|
||||
DISPLAY_WIDTH=480
|
||||
DISPLAY_HEIGHT=272
|
||||
DISPLAY_SIZE_DYNAMIC=0
|
||||
)
|
||||
endif()
|
||||
@@ -21,6 +21,15 @@
|
||||
#error "Need to specify display backend."
|
||||
#endif
|
||||
|
||||
#if DISPLAY_SIZE_DYNAMIC == 0
|
||||
#ifndef DISPLAY_WIDTH
|
||||
#error "DISPLAY_WIDTH must be defined when DISPLAY_SIZE_DYNAMIC is 0."
|
||||
#endif
|
||||
#ifndef DISPLAY_HEIGHT
|
||||
#error "DISPLAY_HEIGHT must be defined when DISPLAY_SIZE_DYNAMIC is 0."
|
||||
#endif
|
||||
#endif
|
||||
|
||||
#ifndef DISPLAY_WINDOW_WIDTH_DEFAULT
|
||||
#error "DISPLAY_WINDOW_WIDTH_DEFAULT must be defined."
|
||||
#endif
|
||||
|
||||
@@ -180,7 +180,6 @@ void sceneMapRenderMap() {
|
||||
max[1] = min[1] + (CHUNK_HEIGHT * TILE_SIZE);
|
||||
max[2] = min[2];
|
||||
|
||||
|
||||
color_t color = COLOR_WHITE;
|
||||
if(chunk->x % 2 == 0) {
|
||||
color = (chunk->y % 2 == 0) ? COLOR_BLACK : COLOR_WHITE;
|
||||
|
||||
Reference in New Issue
Block a user