gb_lcd.c: Prevent some out of bound array accesses (nw)