Update portable_window.c

This commit is contained in:
Ray 2023-05-28 11:21:04 +02:00
parent 4f48e5a3c7
commit 935b8119e9

View File

@ -67,7 +67,7 @@ int main()
windowPosition.x += (mousePosition.x - panOffset.x);
windowPosition.y += (mousePosition.y - panOffset.y);
SetWindowPosition(windowPosition.x, windowPosition.y);
SetWindowPosition((int)windowPosition.x, (int)windowPosition.y);
if (IsMouseButtonReleased(MOUSE_LEFT_BUTTON)) dragWindow = false;
}