*/}}
Browse Source

Weird DeferredRedrawList bug

YimingWu 1 year ago
parent
commit
52f1c941b4
1 changed files with 1 additions and 3 deletions
  1. 1 3
      la_kernel.c

+ 1 - 3
la_kernel.c

@@ -7188,9 +7188,7 @@ void la_PreFrame(){
     if(MAIN.InitArgs.HasAudio) la_AudioPreFrame();
 }
 void la_PostFrame(){
-    for(laListItemPointer* lip=MAIN.DeferredRedrawList.pFirst;lip;lip=lip->pNext){
-        laRedrawPanel(lip->p);
-    }
+    laPanel* p; while(p=lstPopPointer(&MAIN.DeferredRedrawList)){ laRedrawPanel(p); }
     if(MAIN.PostFrame){ MAIN.PostFrame(); }
 }
 void laMainLoop(){