File tree Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Expand file tree Collapse file tree 1 file changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1105,26 +1105,20 @@ static void icvScreenToClient( HWND hwnd, RECT* rect )
1105
1105
/* Calculatess the window coordinates relative to the upper left corner of the mainhWnd window */
1106
1106
static RECT icvCalcWindowRect ( CvWindow* window )
1107
1107
{
1108
- const int gutter = 1 ;
1109
- RECT crect = { 0 }, trect = { 0 } , rect = { 0 };
1108
+ RECT crect = { 0 }, trect = { 0 }, rect = { 0 };
1110
1109
1111
1110
assert (window);
1112
1111
1113
1112
GetClientRect (window->frame , &crect);
1114
- if (window->toolbar .toolbar )
1113
+ if (window->toolbar .toolbar )
1115
1114
{
1116
1115
GetWindowRect (window->toolbar .toolbar , &trect);
1117
1116
icvScreenToClient (window->frame , &trect);
1118
- SubtractRect ( &rect, &crect, &trect);
1117
+ SubtractRect (&rect, &crect, &trect);
1119
1118
}
1120
1119
else
1121
1120
rect = crect;
1122
1121
1123
- rect.top += gutter;
1124
- rect.left += gutter;
1125
- rect.bottom -= gutter;
1126
- rect.right -= gutter;
1127
-
1128
1122
return rect;
1129
1123
}
1130
1124
You can’t perform that action at this time.
0 commit comments