From adcc44ddabb71006b170da1a0311a17ec8805ba0 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Mon, 2 Jun 2025 12:30:58 +0200 Subject: [PATCH] =?UTF-8?q?-=20[NEW]=20Augmentat=20el=20m=C3=A0xim=20de=20?= =?UTF-8?q?textures=20a=20100.=20-=20[NEW]=20Camp=20"name"=20per=20a=20les?= =?UTF-8?q?=20textures.=20-=20[NEW]=20Si=20s'intenta=20carregar=20un=20gif?= =?UTF-8?q?=20que=20ja=20est=C3=A0=20en=20mem=C3=B2ria,=20se=20torna=20el?= =?UTF-8?q?=20que=20est=C3=A0=20en=20mem=C3=B2ria.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mini.cpp | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/mini.cpp b/mini.cpp index 33c4cc3..3cd5f99 100644 --- a/mini.cpp +++ b/mini.cpp @@ -7,7 +7,7 @@ //#include "SDL2/SDL_mixer.h" #include "jail_audio.h" -#define MAX_TEXTURES 10 +#define MAX_TEXTURES 100 #ifdef MACOS_BUNDLE #include @@ -18,7 +18,8 @@ #pragma pack(1) struct surface_t { - uint8_t *p; + char *name {nullptr}; + uint8_t *p {nullptr}; uint16_t w, h; uint32_t size; }; @@ -173,6 +174,8 @@ void reinit() { for (int i=1; i