Merge pull request #13053 from berak:highgui_win32_waitkey

pull/13059/head^2
Alexander Alekhin 6 years ago
commit 572af7640f
  1. 2
      modules/highgui/src/window_w32.cpp

@ -1976,7 +1976,7 @@ cvWaitKey( int delay )
MSG message; MSG message;
int is_processed = 0; int is_processed = 0;
if( delay <= 0 ) if( (delay <= 0) && hg_windows)
GetMessage(&message, 0, 0, 0); GetMessage(&message, 0, 0, 0);
else if( PeekMessage(&message, 0, 0, 0, PM_REMOVE) == FALSE ) else if( PeekMessage(&message, 0, 0, 0, PM_REMOVE) == FALSE )
{ {

Loading…
Cancel
Save