mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 23:33:05 +04:00
Merge remote-tracking branch 'origin/3.4' into merge-3.4
This commit is contained in:
@@ -626,7 +626,7 @@ CV_IMPL int cvWaitKey (int maxWait)
|
||||
inMode:NSDefaultRunLoopMode
|
||||
dequeue:YES];
|
||||
|
||||
if([event type] == NSKeyDown) {
|
||||
if([event type] == NSKeyDown && [[event characters] length]) {
|
||||
returnCode = [[event characters] characterAtIndex:0];
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -2420,21 +2420,6 @@ std::shared_ptr<CvTrackbar> createTrackbar_(CvWindow& window, const std::string&
|
||||
/* Retrieve current buttons count */
|
||||
int bcount = (int)SendMessage(window.toolbar.toolbar, TB_BUTTONCOUNT, 0, 0);
|
||||
|
||||
if (bcount > 0)
|
||||
{
|
||||
/* If this is not the first button then we need to
|
||||
separate it from the previous one */
|
||||
tbs.iBitmap = 0;
|
||||
tbs.idCommand = bcount; // Set button id to it's number
|
||||
tbs.iString = 0;
|
||||
tbs.fsStyle = TBSTYLE_SEP;
|
||||
tbs.fsState = TBSTATE_ENABLED;
|
||||
SendMessage(window.toolbar.toolbar, TB_ADDBUTTONS, 1, (LPARAM)&tbs);
|
||||
|
||||
// Retrieve current buttons count
|
||||
bcount = (int)SendMessage(window.toolbar.toolbar, TB_BUTTONCOUNT, 0, 0);
|
||||
}
|
||||
|
||||
/* Add a button which we're going to cover with the slider */
|
||||
tbs.iBitmap = 0;
|
||||
tbs.idCommand = bcount; // Set button id to it's number
|
||||
|
||||
Reference in New Issue
Block a user