From ab5c62113839c4893d0401e7b96b876c4f26b919 Mon Sep 17 00:00:00 2001 From: "Adam D. Ruppe" Date: Wed, 8 May 2013 09:22:45 -0400 Subject: [PATCH] timer on windows fix --- simpledisplay.d | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/simpledisplay.d b/simpledisplay.d index c6eeab8..f40e9c6 100644 --- a/simpledisplay.d +++ b/simpledisplay.d @@ -765,7 +765,7 @@ version(Windows) { if(pulseTimeout) { bool done = false; while(!done) { - while(!done && PeekMessage(&message, hwnd, 0, 0, PM_NOREMOVE)) { + if(PeekMessage(&message, hwnd, 0, 0, PM_NOREMOVE)) { ret = GetMessage(&message, hwnd, 0, 0); if(ret == 0) done = true;