summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthew Allum <mallum@openedhand.com>2005-02-12 01:12:47 +0000
committerMatthew Allum <mallum@openedhand.com>2005-02-12 01:12:47 +0000
commit722d8018aa8fcfccb5480758338ee4ad241d62f0 (patch)
tree9c13744642adcb44fe0a9ab513fc7c762b6e4908
parentf5917f7058af34dd2cdbbda4068ac5890b5a5fa4 (diff)
downloadfstests-722d8018aa8fcfccb5480758338ee4ad241d62f0.tar.gz
fstests-722d8018aa8fcfccb5480758338ee4ad241d62f0.tar.bz2
fstests-722d8018aa8fcfccb5480758338ee4ad241d62f0.zip
add sync to pango + gdk test
-rw-r--r--tests/test-gdk.c3
-rw-r--r--tests/test-pango-layout.c3
2 files changed, 5 insertions, 1 deletions
diff --git a/tests/test-gdk.c b/tests/test-gdk.c
index 685ae9a..afcbd92 100644
--- a/tests/test-gdk.c
+++ b/tests/test-gdk.c
@@ -92,7 +92,8 @@ expose(GtkWidget *darea,
// gtk_widget_queue_draw_area(darea, 0, 0, width, height);
/* Assume this flushes ? */
- gdk_display_flush(gdk_display_get_default());
+ gdk_display_sync(gdk_display_get_default());
+ // gdk_display_flush(gdk_display_get_default());
}
diff --git a/tests/test-pango-layout.c b/tests/test-pango-layout.c
index 9664710..280a36a 100644
--- a/tests/test-pango-layout.c
+++ b/tests/test-pango-layout.c
@@ -91,10 +91,13 @@ expose(GtkWidget *darea,
gdk_draw_layout (darea->window, gc, 0, y, layout);
+ gdk_display_sync(gdk_display_get_default());
+
y += 20; /* XXX should be font size though not critical */
}
}
+
finish_clock = GetTimeInMillis();
diff_clock = finish_clock - start_clock;