Viewport: Changed signature of ResizeViewport to be consistent with other similar functions.

This commit is contained in:
omar
2018-03-08 20:32:34 +01:00
parent 4d46383100
commit 1eb89d7e3b
5 changed files with 8 additions and 9 deletions

View File

@ -418,7 +418,7 @@ static LRESULT CALLBACK ImGui_ImplWin32_WndProcHandler_PlatformWindow(HWND hWnd,
if (!data->ExternalResize)
viewport->PlatformRequestResize = true;
if (io.RendererInterface.ResizeViewport)
io.RendererInterface.ResizeViewport(viewport, (int)LOWORD(lParam), (int)HIWORD(lParam));
io.RendererInterface.ResizeViewport(viewport, ImVec2((float)LOWORD(lParam), (float)HIWORD(lParam)));
break;
}
}