Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/freebsd-ports-kde
Path: blob/main/emulators/gngb/files/patch-src_sgb.c
16461 views
1
--- src/sgb.c.orig 2003-08-09 09:23:37 UTC
2
+++ src/sgb.c
3
@@ -28,6 +28,11 @@
4
#define SGB_CMD_END() {sgb.cmd=0xff;sgb.nb_pack=-1;}
5
#define SGB_COLOR(c) ((((c)&0x7C00)>>10)|(((c)&0x3E0)<<1)|(((c)&0x1F)<<11))
6
7
+SGB sgb;
8
+Uint8 sgb_mask;
9
+
10
+Uint16 sgb_pal[4][4]; /* 4 pallete of 4 colour */
11
+Uint8 sgb_pal_map[20][18]; /* Map of Pallete Tiles */
12
Uint8 sgb_tiles[256*32];
13
Uint8 sgb_map[32*32];
14
Uint8 sgb_att[32*32];
15
16