I hate stupid bugs like this one
This commit is contained in:
parent
1a3e64844c
commit
847648d5e6
|
@ -194,8 +194,8 @@ void bitmap_scroll(unsigned int const nWidth,
|
||||||
bitmap.nChunkCount = (((bitmap.nViewportWidth - 1) / 8) + 1);
|
bitmap.nChunkCount = (((bitmap.nViewportWidth - 1) / 8) + 1);
|
||||||
|
|
||||||
// initial starting point
|
// initial starting point
|
||||||
int x = random8() % (bitmap.nXDomain + 1);
|
int x = bitmap.nXDomain > 0 ? random8() % bitmap.nXDomain : 0;
|
||||||
int y = random8() % (bitmap.nYDomain + 1);
|
int y = bitmap.nYDomain > 0 ? random8() % bitmap.nYDomain : 0;
|
||||||
char dx = 0;
|
char dx = 0;
|
||||||
char dy = 0;
|
char dy = 0;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue