summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIru Cai <mytbk920423@gmail.com>2018-09-03 23:01:29 +0800
committerIru Cai <mytbk920423@gmail.com>2018-09-03 23:01:29 +0800
commitc1dec3168cac9d0034488a5f8626ba4c7ba28d12 (patch)
tree1ff118b35a6414d0ac3001e5971a4602ebf389c9
parent9c58b5bbada93049b3ca25c7221e0913acfd0301 (diff)
downloadrich4-c1dec3168cac9d0034488a5f8626ba4c7ba28d12.tar.xz
set pixel_fmt as int
-rw-r--r--csrc/bit_functions.c2
-rw-r--r--csrc/global.h2
-rw-r--r--csrc/media_init.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/csrc/bit_functions.c b/csrc/bit_functions.c
index b0be170..b17af04 100644
--- a/csrc/bit_functions.c
+++ b/csrc/bit_functions.c
@@ -2,7 +2,7 @@
#include <stddef.h>
typedef void (*bit_f)(uint16_t*, uint16_t*, uint8_t*, size_t);
-extern uint32_t pixel_fmt;
+extern int pixel_fmt;
void fcn_455337(uint16_t *edi, uint16_t *esi, uint8_t *ebx, size_t ecx)
{
diff --git a/csrc/global.h b/csrc/global.h
index e63b8d3..7f71d02 100644
--- a/csrc/global.h
+++ b/csrc/global.h
@@ -15,7 +15,7 @@ extern int mkf_effect; // 0x48a058
extern HHOOK ghook; // 0x48a050
-extern uint32_t pixel_fmt;
+extern int pixel_fmt;
char * read_mkf(int mkf_idx, int a1, char *buf, int *bufsize);
diff --git a/csrc/media_init.c b/csrc/media_init.c
index 64c98f5..3164718 100644
--- a/csrc/media_init.c
+++ b/csrc/media_init.c
@@ -32,7 +32,7 @@ uint16_t modded_key; // 0x46cb07
struct st st_46cb14 = {640, 480, 0, 0, NULL}; // 0x46cb14, 12 bytes
uint8_t speed_tab[3] = {6, 4, 2}; // 0x64cb20
uint32_t dw_46cb23 = 0;
-uint32_t pixel_fmt; // 0x47637c
+int pixel_fmt; // 0x47637c
void fcn_00456280(struct st *s, int a1, int a2, int a3)
{