From: michux Date: Mon, 30 Mar 2009 21:10:07 +0000 (+0000) Subject: fix fps delay error X-Git-Tag: svn1203~185 X-Git-Url: https://git.webhop.me/?a=commitdiff_plain;h=7228a0e8c38fe01aad2356aee4922cffd6c5efe5;p=lcd4linux.git fix fps delay error git-svn-id: https://ssl.bulix.org/svn/lcd4linux/trunk@1018 3ae390bd-cb1e-0410-b409-cd5a39f66f1f --- diff --git a/drv_vnc.c b/drv_vnc.c index cd34d08..d0a8e2f 100644 --- a/drv_vnc.c +++ b/drv_vnc.c @@ -349,7 +349,7 @@ static void drv_vnc_blit_it(const int row, const int col, const int height, cons sleep += SLEEP_STEPS; } - if (fps < maxfps && sleep > SLEEP_STEPS) { + if (fps < maxfps && sleep >= SLEEP_STEPS) { sleep -= SLEEP_STEPS; } }