Skip to content

Commit 4c87895

Browse files
committed
fix clang build on window
1 parent ef4023d commit 4c87895

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Samples/Example_ImGui_Docking/main_Windows.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ BOOL InitInstance(HINSTANCE hInstance, int nCmdShow)
111111
float sizeadjust = 0.93;
112112
float screen_width = GetSystemMetrics(SM_CXSCREEN);
113113
float screen_height = GetSystemMetrics(SM_CYSCREEN);
114-
RECT rect = { (screen_width -(screen_width * sizeadjust)), (screen_height -(screen_height * sizeadjust)), screen_width * sizeadjust, screen_height * sizeadjust};
114+
RECT rect = { (long)(screen_width -(screen_width * sizeadjust)), (long)(screen_height -(screen_height * sizeadjust)), (long)(screen_width * sizeadjust), (long)(screen_height * sizeadjust)};
115115
AdjustWindowRect(&rect, WS_OVERLAPPEDWINDOW, true);
116116

117117
HWND hWnd = CreateWindowW(szWindowClass, szTitle, WS_OVERLAPPEDWINDOW,

0 commit comments

Comments
 (0)