mirror of
https://github.com/isometimes/rpi4-osdev
synced 2024-11-21 17:50:40 +00:00
Fixed annoying redraw bug (with a wait - sigh...)
This commit is contained in:
parent
875cf7b403
commit
c0fffd881b
1 changed files with 3 additions and 2 deletions
|
@ -156,7 +156,7 @@ void moveObject(volatile struct Object *object, int x, int y)
|
|||
const int ballradius = 15;
|
||||
const int paddlewidth = 80;
|
||||
|
||||
volatile unsigned char dir;
|
||||
volatile unsigned char dir = 50;
|
||||
volatile unsigned int numobjs;
|
||||
|
||||
volatile struct Object *objects = (struct Object *)HEAP_ADDRESS;
|
||||
|
@ -168,7 +168,6 @@ volatile struct Object *endgame;
|
|||
void breakout_init()
|
||||
{
|
||||
numobjs = 0;
|
||||
dir = 50;
|
||||
|
||||
initBricks();
|
||||
initBall();
|
||||
|
@ -243,6 +242,8 @@ void breakout()
|
|||
|
||||
// Clear endgame state
|
||||
updateEndgame(0, 0);
|
||||
|
||||
wait_msec(0x100000); // Wait 1 second
|
||||
}
|
||||
|
||||
void main()
|
||||
|
|
Loading…
Reference in a new issue