Merge pull request #13053 from berak:highgui_win32_waitkey

This commit is contained in:
Alexander Alekhin 2018-11-06 16:18:11 +00:00
commit 572af7640f

View File

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