diff options
Diffstat (limited to 'test/test_redisplay.c')
-rw-r--r-- | test/test_redisplay.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/test_redisplay.c b/test/test_redisplay.c index 0e14cf6..108a433 100644 --- a/test/test_redisplay.c +++ b/test/test_redisplay.c @@ -121,8 +121,10 @@ main(int argc, char** argv) } // Send a custom event to trigger a redisplay in the event loop - const PuglEventClient client = { PUGL_CLIENT, 0, postRedisplayId, 0 }; - assert(!puglSendEvent(app.view, (const PuglEvent*)&client)); + PuglEvent client_event = {{PUGL_CLIENT, 0}}; + client_event.client.data1 = postRedisplayId; + client_event.client.data2 = 0; + assert(!puglSendEvent(app.view, &client_event)); // Loop until an expose happens in the same iteration as the redisplay app.state = SHOULD_REDISPLAY; |