summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
index aa7261e..cf263db 100644
--- a/src/common.h
+++ b/src/common.h
@@ -147,6 +147,7 @@ typedef Color Scanline[SCREEN_WIDTH];
147#define PAL_BUFFER_SPRITES ((u16*)(MEM_PAL + 0x200)) 147#define PAL_BUFFER_SPRITES ((u16*)(MEM_PAL + 0x200))
148#define PAL_BANK_BG ((Palette*) MEM_PAL) 148#define PAL_BANK_BG ((Palette*) MEM_PAL)
149#define PAL_BANK_SPRITES ((Palette*)(MEM_PAL + 0x200)) 149#define PAL_BANK_SPRITES ((Palette*)(MEM_PAL + 0x200))
150static u16 *backbuffer = ((vu16*)(MEM_VRAM + 0x0A000));
150 151
151// 152//
152// Sprites. 153// Sprites.
@@ -198,6 +199,7 @@ typedef Color Scanline[SCREEN_WIDTH];
198 199
199static inline void 200static inline void
200flip_page(void) { 201flip_page(void) {
202 backbuffer = (u16*)((u32)backbuffer ^ 0x0A000);
201 DISP_CTRL ^= DISP_PAGE; 203 DISP_CTRL ^= DISP_PAGE;
202} 204}
203 205