Windows: Fix warning C4267: 'argument' : conversion from 'size_t' to 'int' (issue #1695)
This commit is contained in:
parent
9ec03906a8
commit
e6e123d503
|
@ -209,8 +209,11 @@ void RootWindowWin::Hide() {
|
||||||
void RootWindowWin::SetBounds(int x, int y, size_t width, size_t height) {
|
void RootWindowWin::SetBounds(int x, int y, size_t width, size_t height) {
|
||||||
REQUIRE_MAIN_THREAD();
|
REQUIRE_MAIN_THREAD();
|
||||||
|
|
||||||
if (hwnd_)
|
if (hwnd_) {
|
||||||
SetWindowPos(hwnd_, NULL, x, y, width, height, SWP_NOZORDER);
|
SetWindowPos(hwnd_, NULL,
|
||||||
|
x, y, static_cast<int>(width), static_cast<int>(height),
|
||||||
|
SWP_NOZORDER);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void RootWindowWin::Close(bool force) {
|
void RootWindowWin::Close(bool force) {
|
||||||
|
|
Loading…
Reference in New Issue