regular meeting with Mr. Off-By-One-Error
This commit is contained in:
parent
3c1fc902f4
commit
29c532b8b2
|
@ -384,7 +384,7 @@ static void fixDrawPattern(fixp_t const t_start,
|
||||||
// the end of both buffers and move backwards through their space.
|
// the end of both buffers and move backwards through their space.
|
||||||
// The pre-decrement operator is used so that GCC utilizes the AVR's
|
// The pre-decrement operator is used so that GCC utilizes the AVR's
|
||||||
// built-in pre-decrement variants of the "ld" and "st" instructions.
|
// built-in pre-decrement variants of the "ld" and "st" instructions.
|
||||||
while (pPixmap >= (unsigned char *)pixmap) // stop at the beginning
|
while (pPixmap != &pixmap[0][0][0]) // stop at the beginning
|
||||||
{
|
{
|
||||||
// actually draw off-screen contents
|
// actually draw off-screen contents
|
||||||
*(--pPixmap) = *(--pOffscreenDistHigh);
|
*(--pPixmap) = *(--pOffscreenDistHigh);
|
||||||
|
|
Loading…
Reference in New Issue