Use the rotation from the Viewport where applicable

This commit is contained in:
ζeh Matt committed 2024-03-05 10:23:28 +02:00
1 parent 2661cf8772
commit 98acdf3743
9 files changed
+39 -32

No files matched your search

+1 -1
View File
@@ -836,7 +836,7 @@ void WindowScrollToLocation(WindowBase& w, const CoordsXYZ& coords)
}
}
auto screenCoords = Translate3DTo2DWithZ(GetCurrentRotation(), coords);
auto screenCoords = Translate3DTo2DWithZ(w.viewport->rotation, coords);
int32_t i = 0;
if (!(gScreenFlags & SCREEN_FLAGS_TITLE_DEMO))