diff options
-rw-r--r-- | intern/ghost/intern/GHOST_WindowWin32.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_WindowWin32.cpp b/intern/ghost/intern/GHOST_WindowWin32.cpp index 377eb61874d..2de86ff21fb 100644 --- a/intern/ghost/intern/GHOST_WindowWin32.cpp +++ b/intern/ghost/intern/GHOST_WindowWin32.cpp @@ -92,7 +92,7 @@ GHOST_WindowWin32::GHOST_WindowWin32(GHOST_SystemWin32 *system, m_debug_context(is_debug) { wchar_t *title_16 = alloc_utf16_from_8((char *)title, 0); - RECT win_rect = {left, top, left + width, top + height}; + RECT win_rect = {left, top, (long)(left + width), (long)(top + height)}; RECT parent_rect = {0, 0, 0, 0}; if (parentwindow) { GetWindowRect(m_parentWindowHwnd, &parent_rect); |