From 7761a397a86b0e94bf5d7280b3c2c65e3713fae8 Mon Sep 17 00:00:00 2001 From: Fierelier Date: Thu, 12 Sep 2024 19:51:48 +0200 Subject: [PATCH] *Actually* fix PS2 compatibility --- graphics.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/graphics.c b/graphics.c index d6ba5c1..5252cd8 100644 --- a/graphics.c +++ b/graphics.c @@ -22,7 +22,7 @@ static inline void unigi_platform_color_16_to_32(unigi_type_color color, uint8_t } unigi_type_error unigi_window_create(unigi_type_resolution resolution, char * title) { - #ifndef __PS2__ + #ifndef _EE // if not PS2 SDL_SetHint(SDL_HINT_FRAMEBUFFER_ACCELERATION,"0"); #endif unigi_platform_window = SDL_CreateWindow(title,SDL_WINDOWPOS_CENTERED,SDL_WINDOWPOS_CENTERED,resolution.width,resolution.height,0); @@ -51,7 +51,7 @@ unigi_type_error unigi_window_create(unigi_type_resolution resolution, char * ti color = 0; while (color < 4096) { unigi_platform_color_16_to_32(color,&r,&r,&g,&b); - #ifndef __PS2__ + #ifndef _EE // if not PS2 color_platform = SDL_MapRGBA(unigi_platform_surface->format,r,g,b,255); #else color_platform = SDL_MapRGBA(unigi_platform_surface->format,r/2,g/2,b/2,255);