Prepare for supporting manual screen rotation

This commit is contained in:
Henrik Rydgard committed 2017-03-05 10:54:45 +01:00
1 parent d64f367e1d
commit 340f0cff2c
5 files changed
+111 -25

No files matched your search

+4
View File
@@ -764,6 +764,10 @@ void NativeRender(GraphicsContext *graphicsContext) {
break;
}
if (g_display_rotation != DisplayRotation::ROTATE_0) {
ortho = ortho * g_display_rot_matrix;
}
ui_draw2d.SetDrawMatrix(ortho);
ui_draw2d_front.SetDrawMatrix(ortho);