UI: Track translate/scale/fade transform by screen.

This translates drawing, scissor, and touch to the transform.
This commit is contained in:
Unknown W. Brackets committed 2017-03-19 15:42:13 -07:00
1 parent 92b0f00cd8
commit a36ecb7065
11 files changed
+136 -29

No files matched your search

+5 -2
View File
@@ -772,8 +772,8 @@ void NativeRender(GraphicsContext *graphicsContext) {
ortho = ortho * g_display_rot_matrix;
}
ui_draw2d.SetDrawMatrix(ortho);
ui_draw2d_front.SetDrawMatrix(ortho);
ui_draw2d.PushDrawMatrix(ortho);
ui_draw2d_front.PushDrawMatrix(ortho);
screenManager->render();
if (screenManager->getUIContext()->Text()) {
@@ -820,6 +820,9 @@ void NativeRender(GraphicsContext *graphicsContext) {
}
#endif
}
ui_draw2d.PopDrawMatrix();
ui_draw2d_front.PopDrawMatrix();
}
void HandleGlobalMessage(const std::string &msg, const std::string &value) {