From c83aa611623f6f5e4000671a086ce424b41427d9 Mon Sep 17 00:00:00 2001 From: Raimon Zamora Date: Wed, 19 Nov 2025 10:10:06 +0100 Subject: [PATCH] =?UTF-8?q?-=20[FIX]=20Arreglat=20un=20warning=20en=20Wind?= =?UTF-8?q?ows,=20coses=20de=20les=20putes=20llibreries=20STL,=20que=20son?= =?UTF-8?q?=20de=20tot=20menos=20estandar=20-=20[WIP]=20En=20Windows,=20de?= =?UTF-8?q?spr=C3=A9s=20de=20redimensionar=20finestra,=20es=20veu=20mal,?= =?UTF-8?q?=20treballant=20en=20ello,=20pero=20a=20Windows=20li=20ha=20peg?= =?UTF-8?q?at=20per=20actualiztar-se=20a=20Windows=2011=20i=20a=20vore=20q?= =?UTF-8?q?ui=20li=20diu=20que=20no?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/japi/draw.cpp | 16 +++++++++++++--- source/main.cpp | 4 ++-- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/source/japi/draw.cpp b/source/japi/draw.cpp index 095c1f3..fcb7cb0 100644 --- a/source/japi/draw.cpp +++ b/source/japi/draw.cpp @@ -9,6 +9,7 @@ namespace draw SDL_Renderer *sdl_renderer {nullptr}; // El renderer de SDL SDL_Texture *sdl_texture {nullptr}; // La textura a la que ho renderitze tot SDL_Texture *sdl_source {nullptr}; + SDL_FRect window_rect {0,0,0,0}; void init(const char *titol, const uint16_t width, const uint16_t height) { @@ -18,20 +19,29 @@ namespace draw exit(1); } - sdl_renderer = SDL_CreateRenderer(sdl_window, NULL); + printf("AVAILABLE RENDER DRIVERS:\n"); + for (int i=0; i room_names; for (const auto& entry : fs::directory_iterator("./data/room")) { if (entry.is_regular_file() && entry.path().extension() == ".yaml") { - room_names.emplace_back(entry.path().stem()); + room_names.emplace_back(entry.path().stem().string()); } } std::sort(room_names.begin(), room_names.end(), [](const fs::path& a, const fs::path& b) {