summaryrefslogtreecommitdiff
path: root/emulators/gngb/files/patch-src_sgb.c
diff options
context:
space:
mode:
authorStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
committerStefan Eßer <se@FreeBSD.org>2020-09-22 18:38:06 +0000
commita8b4a281c42c022147a984fa7aaf77ad149278c7 (patch)
treee405a6a742aba68094c2dcca2febfb6b21978a51 /emulators/gngb/files/patch-src_sgb.c
parentchinese/zh-librime: Update to 1.6.1 (diff)
Fix build with -fno-common
Diffstat (limited to 'emulators/gngb/files/patch-src_sgb.c')
-rw-r--r--emulators/gngb/files/patch-src_sgb.c14
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/gngb/files/patch-src_sgb.c b/emulators/gngb/files/patch-src_sgb.c
new file mode 100644
index 000000000000..18d197e26ebe
--- /dev/null
+++ b/emulators/gngb/files/patch-src_sgb.c
@@ -0,0 +1,14 @@
+--- src/sgb.c.orig 2003-08-09 09:23:37 UTC
++++ src/sgb.c
+@@ -28,6 +28,11 @@
+ #define SGB_CMD_END() {sgb.cmd=0xff;sgb.nb_pack=-1;}
+ #define SGB_COLOR(c) ((((c)&0x7C00)>>10)|(((c)&0x3E0)<<1)|(((c)&0x1F)<<11))
+
++SGB sgb;
++Uint8 sgb_mask;
++
++Uint16 sgb_pal[4][4]; /* 4 pallete of 4 colour */
++Uint8 sgb_pal_map[20][18]; /* Map of Pallete Tiles */
+ Uint8 sgb_tiles[256*32];
+ Uint8 sgb_map[32*32];
+ Uint8 sgb_att[32*32];