Skip to content

Commit 0c0cf8b

Browse files
committed
highgui: remove gutter in window_w32
1 parent bbad38b commit 0c0cf8b

File tree

1 file changed

+3
-9
lines changed

1 file changed

+3
-9
lines changed

modules/highgui/src/window_w32.cpp

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,26 +1105,20 @@ static void icvScreenToClient( HWND hwnd, RECT* rect )
11051105
/* Calculatess the window coordinates relative to the upper left corner of the mainhWnd window */
11061106
static RECT icvCalcWindowRect( CvWindow* window )
11071107
{
1108-
const int gutter = 1;
1109-
RECT crect = { 0 }, trect = { 0 } , rect = { 0 };
1108+
RECT crect = { 0 }, trect = { 0 }, rect = { 0 };
11101109

11111110
assert(window);
11121111

11131112
GetClientRect(window->frame, &crect);
1114-
if(window->toolbar.toolbar)
1113+
if (window->toolbar.toolbar)
11151114
{
11161115
GetWindowRect(window->toolbar.toolbar, &trect);
11171116
icvScreenToClient(window->frame, &trect);
1118-
SubtractRect( &rect, &crect, &trect);
1117+
SubtractRect(&rect, &crect, &trect);
11191118
}
11201119
else
11211120
rect = crect;
11221121

1123-
rect.top += gutter;
1124-
rect.left += gutter;
1125-
rect.bottom -= gutter;
1126-
rect.right -= gutter;
1127-
11281122
return rect;
11291123
}
11301124

0 commit comments

Comments
 (0)