Set the right ortho matrix for the backend (although doesn't seem to matter too much for 2D)

This commit is contained in:
Henrik Rydgard 2014-08-23 10:49:40 +02:00
parent e01a97649a
commit 308b13fdf0

View file

@ -710,8 +710,11 @@ void NativeRender() {
// Apply the UIContext bounds as a 2D transformation matrix.
Matrix4x4 ortho;
// ortho.setOrtho(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
ortho.setOrthoD3D(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
if (g_Config.iGPUBackend == GPU_BACKEND_DIRECT3D9) {
ortho.setOrthoD3D(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
} else {
ortho.setOrtho(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
}
ui_draw2d.SetDrawMatrix(ortho);
ui_draw2d_front.SetDrawMatrix(ortho);