From b50836ea0d5c455c115fba76616ba544aad5ae5f Mon Sep 17 00:00:00 2001 From: Tim Goya Date: Tue, 30 Jan 2007 14:59:46 +0000 Subject: [PATCH] Klaus Denker's patch to remove in-between tile lines, issue 0000020. SVN-Revision: 4741 --- src/video/surface.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/video/surface.cpp b/src/video/surface.cpp index 23ff69389..55e17831d 100644 --- a/src/video/surface.cpp +++ b/src/video/surface.cpp @@ -57,10 +57,10 @@ Surface::Surface(const std::string& file, int x, int y, int w, int h) float tex_w = static_cast (texture->get_width()); float tex_h = static_cast (texture->get_height()); - uv_left = static_cast(x) / tex_w; - uv_top = static_cast(y) / tex_h; - uv_right = static_cast(x+w) / tex_w; - uv_bottom = static_cast(y+h) / tex_h; + uv_left = static_cast(x+0.5) / tex_w; + uv_top = static_cast(y+0.5) / tex_h; + uv_right = static_cast(x+w-0.5) / tex_w; + uv_bottom = static_cast(y+h-0.5) / tex_h; width = w; height = h; -- 2.11.0