SDL: Make screen buffer format based on windows pixel format

From 8d2e4f89eaa82d077c0b4926d67be655624e237e Mon Sep 17 00:00:00 2001
From: Francisco Javier Trujillo Mata <[EMAIL REDACTED]>
Date: Tue, 21 Feb 2023 00:06:47 +0100
Subject: [PATCH] Make screen buffer format based on windows pixel format

---
 src/render/psp/SDL_render_psp.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/render/psp/SDL_render_psp.c b/src/render/psp/SDL_render_psp.c
index b364a89feb57b..e1fefb8f1c3f4 100644
--- a/src/render/psp/SDL_render_psp.c
+++ b/src/render/psp/SDL_render_psp.c
@@ -1057,8 +1057,7 @@ static SDL_Renderer *PSP_CreateRenderer(SDL_Window *window, Uint32 flags)
     // flush cache so that no stray data remains
     sceKernelDcacheWritebackAll();
 
-    // Forcing for now using GU_PSM_4444
-    data->drawBufferFormat = GU_PSM_4444;
+    data->drawBufferFormat = pixelFormatToPSPFMT(SDL_GetWindowPixelFormat(window));;
     data->currentDrawBufferFormat = data->drawBufferFormat;
 
     /* Specific GU init */