mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04:00
d3d: Apply a half-pixel offset to make 2D ui graphics sharper (d3d texturing...)
This commit is contained in:
parent
44df3cee06
commit
ae03a855f5
1 changed files with 3 additions and 0 deletions
|
@ -712,6 +712,9 @@ void NativeRender() {
|
|||
Matrix4x4 ortho;
|
||||
if (g_Config.iGPUBackend == GPU_BACKEND_DIRECT3D9) {
|
||||
ortho.setOrthoD3D(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
|
||||
Matrix4x4 translation;
|
||||
translation.setTranslation(Vec3(-0.5f, -0.5f, 0.0f));
|
||||
ortho = translation * ortho;
|
||||
} else {
|
||||
ortho.setOrtho(0.0f, xres, yres, 0.0f, -1.0f, 1.0f);
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue