Windows: Fix warning C4267: 'argument' : conversion from 'size_t' to 'int' (issue #1695)

This commit is contained in:
Marshall Greenblatt 2015-08-21 13:54:29 -04:00
parent 9ec03906a8
commit e6e123d503
1 changed files with 5 additions and 2 deletions

View File

@ -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) {