Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions workspace/all/nextui/nextui.c
Original file line number Diff line number Diff line change
Expand Up @@ -2144,6 +2144,8 @@ int main (int argc, char *argv[]) {
snprintf(tmppath, sizeof(tmppath), "%s/.media/bglist.png", folderBgPath);
if(exists(tmppath))
startLoadFolderBackground(tmppath, entry->type, onBackgroundLoaded, NULL);
else if(bgbmp)
GFX_drawOnLayer(bgbmp,0, 0, screen->w, screen->h,1.0f,0,1);
else
GFX_clearLayers(1);
}
Expand Down Expand Up @@ -2293,10 +2295,14 @@ int main (int argc, char *argv[]) {

lastScreen = SCREEN_GAMELIST;
}

SDL_LockMutex(folderBgMutex);
if(bgbmp) {
GFX_drawOnLayer(bgbmp,0, 0, screen->w, screen->h,1.0f,0,1);
}
SDL_UnlockMutex(folderBgMutex);

if(animationdirection > 0) {
GFX_clearLayers(1);
// GFX_clearLayers(1);
GFX_clearLayers(2);
GFX_flipHidden();
SDL_Surface *tmpNewScreen = GFX_captureRendererToSurface();
Expand Down Expand Up @@ -2350,13 +2356,14 @@ int main (int argc, char *argv[]) {
readytoscroll = 0;
} else {



// honestly this whole thing is here only for the scrolling text, I set it now to run this at 30fps which is enough for scrolling text, should move this to seperate animation function eventually
Uint32 now = SDL_GetTicks();
Uint32 frame_start = now;
static char cached_display_name[256] = "";
SDL_LockMutex(folderBgMutex);
if(folderbgbmp && CFG_getRomsUseFolderBackground() && folderbgchanged) {
// GFX_clearLayers(1);
GFX_drawOnLayer(folderbgbmp,0, 0, screen->w, screen->h,1.0f,0,1);
PLAT_GPU_Flip();
folderbgchanged=0;
Expand Down
Loading