X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/graphlib.git/blobdiff_plain/6e09de85028e017162325753bd3ef89d56850a9e..40dbbdcea185c77b7e9e1696ef7dc3d925d22492:/test/hello.cpp diff --git a/test/hello.cpp b/test/hello.cpp index 40432e3..8cc7b50 100644 --- a/test/hello.cpp +++ b/test/hello.cpp @@ -39,9 +39,10 @@ void flip(DrawingWindow &w) // std::cerr << "loooooooooooooooooooooop " // << y << " (" << c << ")\n"; w.setColor(c, c, c); - for (int yy = y; yy < y + 10; yy++) + for (int yy = y; yy < y + 10; yy++) { for (int x = 0; x < w.width; x++) w.drawPoint(x, yy); + } if ((y += 10) >= w.height) { y = 0; c = !c; @@ -132,6 +133,7 @@ void lines(DrawingWindow &w) int y2 = rand() % ymax; w.setColor(r, g, b); w.drawLine(x1, y1, x2, y2); + w.sync(); } }