mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-17 16:30:30 +02:00
d3d: Apply a half-pixel offset to make 2D ui graphics sharper (d3d texturing...)
This commit is contained in:
1 parent
44df3cee06
commit
ae03a855f5
1 file changed
+3
@@ -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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user