Fix a calculation resulting in a bad color index

This commit is contained in:
Kevin Lange 2014-05-01 11:14:27 -07:00
parent 1e50a21706
commit eef505b957

View File

@ -839,6 +839,7 @@ int main(int argc, char ** argv) {
*/
const char *rainbow = ",,>>&&&+++###==;;;,,";
color = rainbow[mod_x + y-23];
if (color == 0) color = ',';
} else if (x < 0 || y < 0 || y >= FRAME_HEIGHT || x >= FRAME_WIDTH) {
/* Fill all other areas with background */
color = ',';