Commit cae2a535 authored by berak's avatar berak

highgui: fix broken waitKey() condition in window_w32

parent d9b8a9d9
......@@ -1976,7 +1976,7 @@ cvWaitKey( int delay )
MSG message;
int is_processed = 0;
if( delay <= 0 )
if( (delay <= 0) && hg_windows)
GetMessage(&message, 0, 0, 0);
else if( PeekMessage(&message, 0, 0, 0, PM_REMOVE) == FALSE )
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment