From 618e032284b7c4e0970e7d043f13f285f2192230 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Tue, 18 Nov 2025 09:47:35 +0100 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20Ajustada=20la=20c=C3=A0rrega=20de?= =?UTF-8?q?=20textures,=20per=20a=20que=20quan=20tenen=20tamanys=20raros?= =?UTF-8?q?=20i=20s'est=C3=A0=20usant=20acceleraci=C3=B3=20hardware?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/japi/draw.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/source/japi/draw.cpp b/source/japi/draw.cpp index b361e92..6555394 100644 --- a/source/japi/draw.cpp +++ b/source/japi/draw.cpp @@ -58,7 +58,14 @@ namespace draw int sdl_pitch; SDL_LockTexture(surf, NULL, (void **)&sdl_pixels, &sdl_pitch); - for (uint32_t i = 0; i < w*h; ++i) sdl_pixels[i] = transparent==pixels[i] ? 0x00000000 : pal[pixels[i]] | 0xff000000; + int i=0; + for (int y=0; y