diff options
author | 2014-01-04 03:17:31 +0000 | |
---|---|---|
committer | 2014-01-04 03:17:31 +0000 | |
commit | 3312b67f9323962ddf18f25950176f2f0d999e1b (patch) | |
tree | 501e46047c85039a8274be9c963ba41a8f69361a /src/osd/windows/drawd3d.c | |
parent | 1c5f0dfe04c09654823ce0f96b8f8f4642f0b399 (diff) |
- Fix for pixel gaps between multi-screen games in HLSL mode. [MooglyGuy]
Diffstat (limited to 'src/osd/windows/drawd3d.c')
-rw-r--r-- | src/osd/windows/drawd3d.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/osd/windows/drawd3d.c b/src/osd/windows/drawd3d.c index 4d40c31f587..ec4b4225807 100644 --- a/src/osd/windows/drawd3d.c +++ b/src/osd/windows/drawd3d.c @@ -1690,14 +1690,14 @@ void renderer::draw_quad(const render_primitive *prim) return; // fill in the vertexes clockwise - vertex[0].x = prim->bounds.x0 - 0.5f; - vertex[0].y = prim->bounds.y0 - 0.5f; - vertex[1].x = prim->bounds.x1 - 0.5f; - vertex[1].y = prim->bounds.y0 - 0.5f; - vertex[2].x = prim->bounds.x0 - 0.5f; - vertex[2].y = prim->bounds.y1 - 0.5f; - vertex[3].x = prim->bounds.x1 - 0.5f; - vertex[3].y = prim->bounds.y1 - 0.5f; + vertex[0].x = roundf(prim->bounds.x0) - 0.5f; + vertex[0].y = roundf(prim->bounds.y0) - 0.5f; + vertex[1].x = roundf(prim->bounds.x1) - 0.5f; + vertex[1].y = roundf(prim->bounds.y0) - 0.5f; + vertex[2].x = roundf(prim->bounds.x0) - 0.5f; + vertex[2].y = roundf(prim->bounds.y1) - 0.5f; + vertex[3].x = roundf(prim->bounds.x1) - 0.5f; + vertex[3].y = roundf(prim->bounds.y1) - 0.5f; float width = prim->bounds.x1 - prim->bounds.x0; float height = prim->bounds.y1 - prim->bounds.y0; |