aboutsummaryrefslogtreecommitdiff
path: root/source/gfx.c
diff options
context:
space:
mode:
authorjdgleaver2020-10-15 17:00:00 +0100
committerjdgleaver2020-10-15 17:00:00 +0100
commit23294848d036e19ca45b8b511d343c95b9f914e6 (patch)
tree976ef8cf2b58958ad4888f97fa736916d6064386 /source/gfx.c
parent8c24c86a49b23086941814e3ae1d58a2993dac7a (diff)
downloadsnes9x2005-23294848d036e19ca45b8b511d343c95b9f914e6.tar.gz
snes9x2005-23294848d036e19ca45b8b511d343c95b9f914e6.tar.bz2
snes9x2005-23294848d036e19ca45b8b511d343c95b9f914e6.zip
Add 'USE_OLD_COLOUR_OPS' flag + PSP ifdef guards
Diffstat (limited to 'source/gfx.c')
-rw-r--r--source/gfx.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source/gfx.c b/source/gfx.c
index e648259..85b58f3 100644
--- a/source/gfx.c
+++ b/source/gfx.c
@@ -226,8 +226,8 @@ bool S9xInitGFX(void)
GFX.PPLx2 = GFX.Pitch;
S9xFixColourBrightness();
-#if defined(PSP)
- /* PSP uses pre-1.60 colour operations */
+#if defined(USE_OLD_COLOUR_OPS)
+ /* Pre-1.60 colour operations */
if (!(GFX.X2 = (uint16_t*) malloc(sizeof(uint16_t) * 0x10000)))
return false;
@@ -343,8 +343,8 @@ bool S9xInitGFX(void)
void S9xDeinitGFX(void)
{
/* Free any memory allocated in S9xInitGFX */
-#if defined(PSP)
- /* PSP uses pre-1.60 colour operations */
+#if defined(USE_OLD_COLOUR_OPS)
+ /* Pre-1.60 colour operations */
if (GFX.X2)
{
free(GFX.X2);