mirror of
https://github.com/opencv/opencv.git
synced 2025-06-08 01:53:19 +08:00
highgui: fix broken waitKey() condition in window_w32
This commit is contained in:
parent
d9b8a9d90e
commit
cae2a53563
@ -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 )
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user