Commit 572af764 authored by Alexander Alekhin's avatar Alexander Alekhin

Merge pull request #13053 from berak:highgui_win32_waitkey

parents cceeca30 cae2a535
......@@ -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