mirror of
https://github.com/opencv/opencv.git
synced 2025-06-09 02:23:23 +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;
|
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…
Reference in New Issue
Block a user