*Actually* fix PS2 compatibility

This commit is contained in:
Fierelier 2024-09-12 19:51:48 +02:00
parent efc1241511
commit 7761a397a8

View File

@ -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);