From 07d83c89b7c6449fb8502b2dbcae033551899ffa Mon Sep 17 00:00:00 2001 From: Charlie Fenton Date: Sat, 29 Sep 2007 01:30:32 +0000 Subject: [PATCH] graphics API: Write changed window size only after it has stopped changing svn path=/trunk/boinc/; revision=13714 --- api/graphics2_unix.C | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/graphics2_unix.C b/api/graphics2_unix.C index a751368cbc..50a104cde2 100644 --- a/api/graphics2_unix.C +++ b/api/graphics2_unix.C @@ -103,7 +103,7 @@ static void maybe_render() { width = new_width; height = new_height; } else { - if (++size_changed > 10) { + if (size_changed && (++size_changed > 10)) { size_changed = 0; FILE *f = boinc_fopen("gfx_info", "w"); if (f) {