d3d: Apply a half-pixel offset to make 2D ui graphics sharper (d3d texturing...)

This commit is contained in:
Henrik Rydgard 2014-08-25 21:33:24 +02:00
parent 44df3cee06
commit ae03a855f5

View file

@ -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);
}