graphics API: Write changed window size only after it has stopped changing

svn path=/trunk/boinc/; revision=13714
This commit is contained in:
Charlie Fenton 2007-09-29 01:30:32 +00:00
parent 71255d3194
commit 07d83c89b7
1 changed files with 1 additions and 1 deletions

View File

@ -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) {