mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
Set the right ortho matrix for the backend (although doesn't seem to matter too much for 2D)
This commit is contained in:
parent
e01a97649a
commit
308b13fdf0
1 changed files with 5 additions and 2 deletions
|
@ -710,8 +710,11 @@ void NativeRender() {
|
||||||
|
|
||||||
// Apply the UIContext bounds as a 2D transformation matrix.
|
// Apply the UIContext bounds as a 2D transformation matrix.
|
||||||
Matrix4x4 ortho;
|
Matrix4x4 ortho;
|
||||||
// ortho.setOrtho(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);
|
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.SetDrawMatrix(ortho);
|
||||||
ui_draw2d_front.SetDrawMatrix(ortho);
|
ui_draw2d_front.SetDrawMatrix(ortho);
|
||||||
|
|
Loading…
Add table
Reference in a new issue