From 303393050d2816328bf11eaaf7f41ed87edde1ff Mon Sep 17 00:00:00 2001 From: kdx Date: Thu, 23 Mar 2023 22:29:27 +0100 Subject: less cringe --- CMakeLists.txt | 2 +- src/map.c | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 94f1f5d..98169d6 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -34,7 +34,7 @@ set(ASSETS fxconv_declare_assets(${ASSETS} WITH_METADATA) add_executable(myaddin ${SOURCES} ${ASSETS} ${ASSETS_${FXSDK_PLATFORM}}) -target_compile_options(myaddin PRIVATE -Wall -Wextra -Os) +target_compile_options(myaddin PRIVATE -Wall -Wextra -O2) target_link_libraries(myaddin Gint::Gint) generate_g3a(TARGET myaddin OUTPUT "hyperultra.g3a" NAME "" diff --git a/src/map.c b/src/map.c index c572854..05774c6 100644 --- a/src/map.c +++ b/src/map.c @@ -66,10 +66,10 @@ draw_outline(int x, int y) const int down = (map_get(x, y + 1) == 1); x *= TSIZE; y *= TSIZE; - if (!left) LZY_DrawRect(x, y, 1, TSIZE); - if (!right) LZY_DrawRect(x + TSIZE - 1, y, 1, TSIZE); - if (!up) LZY_DrawRect(x, y, TSIZE, 1); - if (!down) LZY_DrawRect(x, y + TSIZE - 1, TSIZE, 1); + if (!left) LZY_DrawFillRect(x, y, 1, TSIZE); + if (!right) LZY_DrawFillRect(x + TSIZE - 1, y, 1, TSIZE); + if (!up) LZY_DrawFillRect(x, y, TSIZE, 1); + if (!down) LZY_DrawFillRect(x, y + TSIZE - 1, TSIZE, 1); } void -- cgit v1.2.3