From f1ce320e7ebdbc103a61561f6ff8f90599f60690 Mon Sep 17 00:00:00 2001 From: ro8inmorgan Date: Sun, 18 May 2025 11:04:04 +0200 Subject: [PATCH 1/2] Transition between menu animation fixed --- workspace/all/nextui/nextui.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/workspace/all/nextui/nextui.c b/workspace/all/nextui/nextui.c index 75ea570e1..938423f5e 100644 --- a/workspace/all/nextui/nextui.c +++ b/workspace/all/nextui/nextui.c @@ -2289,15 +2289,16 @@ int main (int argc, char *argv[]) { lastScreen = SCREEN_GAMELIST; } - if(animationdirection > 0) { - // GFX_clearLayers(1); + if(animationdirection > 0 && CFG_getMenuTransitions()) { + GFX_clearLayers(1); + folderbgchanged = 1; GFX_clearLayers(2); GFX_flipHidden(); SDL_Surface *tmpNewScreen = GFX_captureRendererToSurface(); SDL_SetSurfaceBlendMode(tmpNewScreen,SDL_BLENDMODE_BLEND); GFX_clearLayers(3); - if(animationdirection==1) GFX_animateAndFadeSurface(tmpOldScreen,0,0,0-FIXED_WIDTH,0,FIXED_WIDTH,FIXED_HEIGHT,CFG_getMenuTransitions() ? 200:20,tmpNewScreen,1,0,FIXED_WIDTH,FIXED_HEIGHT,0,255,3); - if(animationdirection==2) GFX_animateAndFadeSurface(tmpOldScreen,0,0,0+FIXED_WIDTH,0,FIXED_WIDTH,FIXED_HEIGHT,CFG_getMenuTransitions() ? 200:20,tmpNewScreen,1,0,FIXED_WIDTH,FIXED_HEIGHT,0,255,3); + if(animationdirection==1) GFX_animateAndFadeSurface(tmpOldScreen,0,0,0-FIXED_WIDTH,0,FIXED_WIDTH,FIXED_HEIGHT,200,tmpNewScreen,1,0,FIXED_WIDTH,FIXED_HEIGHT,0,255,3); + if(animationdirection==2) GFX_animateAndFadeSurface(tmpOldScreen,0,0,0+FIXED_WIDTH,0,FIXED_WIDTH,FIXED_HEIGHT,200,tmpNewScreen,1,0,FIXED_WIDTH,FIXED_HEIGHT,0,255,3); GFX_clearLayers(3); SDL_FreeSurface(tmpNewScreen); animationdirection=0; From dfcc484784969c90202f33e480a72985d536470f Mon Sep 17 00:00:00 2001 From: ro8inmorgan Date: Sun, 18 May 2025 11:10:33 +0200 Subject: [PATCH 2/2] increased thread pool to 2, seems safe now after my fixes --- workspace/all/nextui/nextui.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/workspace/all/nextui/nextui.c b/workspace/all/nextui/nextui.c index 938423f5e..a554f42a7 100644 --- a/workspace/all/nextui/nextui.c +++ b/workspace/all/nextui/nextui.c @@ -1413,7 +1413,7 @@ static SDL_Surface* thumbbmp = NULL; static SDL_Surface* screen = NULL; // Must be assigned externally // i think 2 is fine could probably even be 1 -#define THREAD_POOL_SIZE 1 +#define THREAD_POOL_SIZE 2 static int had_thumb = 0; static int ox;