From 5892ee7ddd924f849af00c8a028ab4675d6798bd Mon Sep 17 00:00:00 2001 From: "Raimon @ quifisraimon" Date: Tue, 13 Oct 2026 17:43:33 +0200 Subject: [PATCH] =?UTF-8?q?-=20[DEL]=20Oblida-ho,=20no=20fa=20falta=20un?= =?UTF-8?q?=20mode=20consola,=20la=20mateixa=20soluci=C3=B3=20val=20pa=20t?= =?UTF-8?q?ot...?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- source/backends/SDL3/video.cpp | 8 ++------ source/mini/mini.cpp | 3 +-- 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/source/backends/SDL3/video.cpp b/source/backends/SDL3/video.cpp index b8e7902..82aae33 100644 --- a/source/backends/SDL3/video.cpp +++ b/source/backends/SDL3/video.cpp @@ -77,12 +77,8 @@ namespace backend { dest_rect.w = width * zoom; dest_rect.h = height * zoom; - if (mini::win::state.console) { - dest_rect.x = (ww - dest_rect.w)/2; - dest_rect.y = (wh - dest_rect.h)/2; - } else { - dest_rect.x = dest_rect.y = 0; - } + dest_rect.x = (ww - dest_rect.w)/2; + dest_rect.y = (wh - dest_rect.h)/2; printf("dest_rect: (%i,%i)-(%i,%i)\n", (int)dest_rect.x, (int)dest_rect.y, (int)dest_rect.w, (int)dest_rect.h); } shader::reinit(); diff --git a/source/mini/mini.cpp b/source/mini/mini.cpp index b809e65..d08d76d 100644 --- a/source/mini/mini.cpp +++ b/source/mini/mini.cpp @@ -69,8 +69,7 @@ void read_ini() { else if (strcmp(line, "width") == 0) { mini::win::state.width = atoi(value); log_msg(LOG_VERBOSE, "screen width = %i\n", mini::win::state.width); } else if (strcmp(line, "height") == 0) { mini::win::state.height = atoi(value); log_msg(LOG_VERBOSE, "screen height = %i\n", mini::win::state.height); } else if (strcmp(line, "zoom") == 0) { mini::win::state.zoom = atoi(value); log_msg(LOG_VERBOSE, "screen zoom = %i\n", mini::win::state.zoom); } - else if (strcmp(line, "fullscreen") == 0) { mini::win::state.fullscreen = atoi(value); log_msg(LOG_VERBOSE, "screen sullscreen = %i\n", mini::win::state.fullscreen); } - else if (strcmp(line, "console") == 0) { mini::win::state.console = atoi(value); log_msg(LOG_VERBOSE, "run from console = %i\n", mini::win::state.console); } + else if (strcmp(line, "fullscreen") == 0) { mini::win::state.fullscreen = (strcmp("true", value)==0); log_msg(LOG_VERBOSE, "screen sullscreen = %s\n", mini::win::state.fullscreen?"true":"false"); } //else if (strcmp(line, "files") == 0) { //lua_files = (char*)malloc(strlen(value)); // strcpy(lua_files, value);