smaffer / espvgax

ESP8266 VGA Library for Arduino
160 stars 24 forks source link

draw_row() function can't draw short lines #6

Closed Smilei0 closed 5 years ago

Smilei0 commented 5 years ago

Hello! I am trying to make a litle snake game with the library and I noticed that the draw_row() function can't draw short lines ( 15px for example) and because of that small rectangles behave strange. If I remove the following lines it works correctly:

while (x0%32) { ESPVGAX::putpixel(x0, line, c, op); x0++; sw--; }

Can you check it please and thanks for the library !