From c95bd3c4ea5fe7b067a54ca4d55decb252219b60 Mon Sep 17 00:00:00 2001 From: henyxia Date: Fri, 8 May 2015 22:17:32 +0200 Subject: [PATCH] Retrieving data from BMP --- Makefile | 2 +- map/main.bmp | Bin 77946 -> 0 bytes map/main.xcf | Bin 16086 -> 0 bytes ui.c | 6 ++++++ 4 files changed, 7 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 6aff8ed..6b8238e 100644 --- a/Makefile +++ b/Makefile @@ -28,7 +28,7 @@ $(OUTPUT): $(OBJECTS) $(MAP) bmp2rgb565 $< $@ %.boz: %.bmp - convert -flip $< $@ + cat $< > $@ %.bmpr: %.bmp convert -flip $< $@ diff --git a/map/main.bmp b/map/main.bmp index d54a87f..2a0dbd2 100644 Binary files a/map/main.bmp and b/map/main.bmp differ diff --git a/map/main.xcf b/map/main.xcf index cb0d12e..ba4e6de 100644 Binary files a/map/main.xcf and b/map/main.xcf differ diff --git a/ui.c b/ui.c index 5a0c7b1..12783ec 100644 --- a/ui.c +++ b/ui.c @@ -80,6 +80,12 @@ int calculateInteraction(int act, int x, int y) printx(ERROR, UI, "The selected map is unopenable\n"); return act; } + + fseek(f, x + y*320, SEEK_SET); + + printx(DEBUG, UI, "Ret is %02X\n", fgetc(f)); + + fclose(f); return act; } -- libgit2 0.21.2