From e0792d3546588059c9f5afb8de08da926f65387c Mon Sep 17 00:00:00 2001 From: ro8inmorgan Date: Sun, 18 May 2025 21:50:58 +0200 Subject: [PATCH] fix for titles not going fullscreen if there is no gamethumb --- skeleton/SYSTEM/tg5040/bin/suspend | 2 +- workspace/all/nextui/nextui.c | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/skeleton/SYSTEM/tg5040/bin/suspend b/skeleton/SYSTEM/tg5040/bin/suspend index 5b6715a17..00ec97c38 100755 --- a/skeleton/SYSTEM/tg5040/bin/suspend +++ b/skeleton/SYSTEM/tg5040/bin/suspend @@ -1,5 +1,5 @@ #!/bin/sh -# set -eu +set -euo pipefail exec 0<&- # wpa_running=0 diff --git a/workspace/all/nextui/nextui.c b/workspace/all/nextui/nextui.c index a554f42a7..f60cefef3 100644 --- a/workspace/all/nextui/nextui.c +++ b/workspace/all/nextui/nextui.c @@ -2159,7 +2159,11 @@ int main (int argc, char *argv[]) { int new_w = max_w; int new_h = max_h; had_thumb = 1; - ox = (int)(max_w) - SCALE1(BUTTON_MARGIN*5); + if(exists(thumbpath)) + ox = (int)(max_w) - SCALE1(BUTTON_MARGIN*5); + else + ox = screen->w; + SDL_UnlockMutex(thumbMutex); }