aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkdx <kikoodx@paranoici.org>2022-10-21 01:29:27 +0200
committerkdx <kikoodx@paranoici.org>2022-10-21 01:29:32 +0200
commitae757fde37f1d5ec2875489d8db69e64075838e9 (patch)
tree19ca843fd26540a19bc6fc293ad4534aa03f96ee
parent18d9e59ceb91a254e5dafa0cea81f4ebded9a685 (diff)
downloadlzr-ae757fde37f1d5ec2875489d8db69e64075838e9.tar.gz
update demo
-rw-r--r--Tupfile2
-rw-r--r--demo.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/Tupfile b/Tupfile
index 0d2d81c..3131268 100644
--- a/Tupfile
+++ b/Tupfile
@@ -1,5 +1,5 @@
CFLAGS = -Wall -Wextra -std=c99 -pedantic `sdl2-config --cflags`
-LDFLAGS = -ldx `sdl2-config --libs` -lSDL2_gfx -lSDL2_image
+LDFLAGS = -ldx `sdl2-config --libs` -lSDL2_gfx -lSDL2_image -lSDL2_mixer
.gitignore
: foreach *.c |> gcc $(CFLAGS) -c -o %o %f |> %B.o
diff --git a/demo.c b/demo.c
index d8238c9..314f39e 100644
--- a/demo.c
+++ b/demo.c
@@ -44,8 +44,8 @@ int main(void)
LZR_DrawSetColor(0.9f, 0.9f, 0.8f);
LZR_DrawClear();
LZR_DrawSetColor(1.0f, 1.0f, 1.0f);
- LZR_DrawTile(1, 2, 2, 2);
- LZR_DrawTile(1, 4, 22, 2);
+ LZR_DrawTile(1, 2, 2, 2, 0.0, 0);
+ LZR_DrawTile(1, 4, 22, 2, 0.0, 0);
const float shade = 0.9 * (0.5f + darkness);
LZR_DrawSetColor(shade, shade, 0.0f);
LZR_DrawImageEx(0, x, y, stg);