From c09d9f0e20706a43127795dd32abd9f6c4671f98 Mon Sep 17 00:00:00 2001 From: Randy Heit Date: Sat, 31 Jan 2009 03:46:30 +0000 Subject: [PATCH] - Fixed: D3DFB::DrawTextureV() did not properly adjust the texture coordinate for lclip and rclip. SVN r1384 (trunk) --- docs/rh-log.txt | 2 ++ src/win32/fb_d3d9.cpp | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/rh-log.txt b/docs/rh-log.txt index 1de6a1858..457aae914 100644 --- a/docs/rh-log.txt +++ b/docs/rh-log.txt @@ -1,4 +1,6 @@ January 30, 2009 +- Fixed: D3DFB::DrawTextureV() did not properly adjust the texture coordinate + for lclip and rclip. - Added weapdrop ccmd. - Centered the compatibility mode option in the comptibility options menu. - Added button mappings for 8 mouse buttons on SDL. It works with my system, diff --git a/src/win32/fb_d3d9.cpp b/src/win32/fb_d3d9.cpp index 89aa64226..895e8fb9d 100644 --- a/src/win32/fb_d3d9.cpp +++ b/src/win32/fb_d3d9.cpp @@ -2431,12 +2431,12 @@ void STACK_ARGS D3DFB::DrawTextureV (FTexture *img, int x, int y, uint32 tags_fi } if (x0 < parms.lclip) { - u0 += float(parms.lclip - x0) * uscale / xscale; + u0 += float(parms.lclip - x0) * uscale; x0 = float(parms.lclip); } if (x1 > parms.rclip) { - u1 -= float(x1 - parms.rclip) * uscale / xscale; + u1 -= float(x1 - parms.rclip) * uscale; x1 = float(parms.rclip); } parms.bilinear = false;