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;