summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2023-03-23 22:29:27 +0100
committerkdx <kikoodx@paranoici.org>2023-03-23 22:29:27 +0100
commit303393050d2816328bf11eaaf7f41ed87edde1ff (patch)
treeeaadc991d50620f0013f82adc093cc8aff108fa1
parent6a0392d7a00782fd5ed1c74ee1e3ab44f9c7c399 (diff)
downloadhyperultra-303393050d2816328bf11eaaf7f41ed87edde1ff.tar.gz
less cringe
-rw-r--r--CMakeLists.txt2
-rw-r--r--src/map.c8
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