comparison Discovery/Src/gfx_engine.c @ 705:158d612a9f4d

Bugfix release frame: The loop to find an free not used frames had an invalid break condition which was never met. It was changed to check every frame once and the exit the loop.
author Ideenmodellierer
date Tue, 01 Nov 2022 09:55:45 +0100
parents 01f40cb1057e
children 5071d554aaa5
comparison
equal deleted inserted replaced
704:f1b40364b0af 705:158d612a9f4d
3443 i++; 3443 i++;
3444 if(i == MAXFRAMES) 3444 if(i == MAXFRAMES)
3445 { 3445 {
3446 i = 0; 3446 i = 0;
3447 } 3447 }
3448 }while((i < MAXFRAMES) && (frame[i].status != RELEASED)); 3448 }while((i != lastFrameProvided) && (frame[i].status != RELEASED));
3449 3449
3450 3450
3451 if((i < MAXFRAMES) && (frame[i].status == RELEASED)) 3451 if((i < MAXFRAMES) && (frame[i].status == RELEASED))
3452 { 3452 {
3453 GFX_clear_frame_immediately(frame[i].StartAddress); 3453 GFX_clear_frame_immediately(frame[i].StartAddress);