mirror of
https://github.com/knightfox75/nds_nflib.git
synced 2025-06-18 16:55:32 -04:00
examples: Fix potential tearing
The image needs to be switched during the vertical blanking period so that no tearing is shown during the switch.
This commit is contained in:
parent
11b2717515
commit
af329f901a
@ -114,11 +114,11 @@ int main(int argc, char **argv)
|
||||
}
|
||||
}
|
||||
|
||||
// Swap backbuffer and visible buffers
|
||||
NF_Flip16bitsBackBuffer(1);
|
||||
|
||||
// Wait for the screen refresh
|
||||
swiWaitForVBlank();
|
||||
|
||||
// Swap backbuffer and visible buffers
|
||||
NF_Flip16bitsBackBuffer(1);
|
||||
}
|
||||
|
||||
return 0;
|
||||
|
Loading…
Reference in New Issue
Block a user