|
|
@ -1105,7 +1105,6 @@ static void icvScreenToClient( HWND hwnd, RECT* rect ) |
|
|
|
/* Calculatess the window coordinates relative to the upper left corner of the mainhWnd window */ |
|
|
|
/* Calculatess the window coordinates relative to the upper left corner of the mainhWnd window */ |
|
|
|
static RECT icvCalcWindowRect( CvWindow* window ) |
|
|
|
static RECT icvCalcWindowRect( CvWindow* window ) |
|
|
|
{ |
|
|
|
{ |
|
|
|
const int gutter = 1; |
|
|
|
|
|
|
|
RECT crect = { 0 }, trect = { 0 }, rect = { 0 }; |
|
|
|
RECT crect = { 0 }, trect = { 0 }, rect = { 0 }; |
|
|
|
|
|
|
|
|
|
|
|
assert(window); |
|
|
|
assert(window); |
|
|
@ -1120,11 +1119,6 @@ static RECT icvCalcWindowRect( CvWindow* window ) |
|
|
|
else |
|
|
|
else |
|
|
|
rect = crect; |
|
|
|
rect = crect; |
|
|
|
|
|
|
|
|
|
|
|
rect.top += gutter; |
|
|
|
|
|
|
|
rect.left += gutter; |
|
|
|
|
|
|
|
rect.bottom -= gutter; |
|
|
|
|
|
|
|
rect.right -= gutter; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return rect; |
|
|
|
return rect; |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|