Browse Source

regular meeting with Mr. Off-By-One-Error

feature/2015
Christian Kroll 12 years ago
parent
commit
29c532b8b2
  1. 2
      animations/fpmath_patterns.c

2
animations/fpmath_patterns.c

@ -384,7 +384,7 @@ static void fixDrawPattern(fixp_t const t_start,
// the end of both buffers and move backwards through their space.
// The pre-decrement operator is used so that GCC utilizes the AVR's
// 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
*(--pPixmap) = *(--pOffscreenDistHigh);

Loading…
Cancel
Save