Explorar o código

Because we're on C++

Eiyeron Fulmincendii %!s(int64=9) %!d(string=hai) anos
pai
achega
8ca55791c0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      platform/3ds/Graphics.cpp

+ 1 - 1
platform/3ds/Graphics.cpp

@@ -143,7 +143,7 @@ void Graphics::put_line(uint16_t x, uint16_t y, uint16_t x2, uint16_t y2,
     int dy = abs(y - y2), sy = y < y2 ? 1 : -1;
     int err = (dx > dy ? dx : -dy) / 2, e2;
 
-    for (;;)
+    while(true)
     {
         put_pixel(x + OFFSET_X, y + OFFSET_Y, color);
         if (x == x2 && y == y2)