From 97c9cb96212b0028e41f15236f9126dd9e1215a9 Mon Sep 17 00:00:00 2001 From: Chris Tallon Date: Wed, 28 Mar 2007 22:47:09 +0000 Subject: [PATCH] A _very_ simple screensaver --- vscreensaver.cc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/vscreensaver.cc b/vscreensaver.cc index c51b714..f979f63 100644 --- a/vscreensaver.cc +++ b/vscreensaver.cc @@ -104,10 +104,10 @@ void VScreensaver::threadMethod() fx += sin(direction); fy += cos(direction); - if (fx < 0){ printf("AAA\n"); fx += screenWidth; } - if (fx >= screenWidth){ printf("BBB\n"); fx -= screenWidth; } - if (fy < 0){ printf("CCC\n"); fy += screenHeight; } - if (fy >= screenHeight){ printf("DDD\n"); fy -= screenHeight; } + if (fx < 0) fx += screenWidth; + if (fx >= screenWidth) fx -= screenWidth; + if (fy < 0) fy += screenHeight; + if (fy >= screenHeight) fy -= screenHeight; x[0] = (int)fx; y[0] = (int)fy; -- 2.39.5