d3dx9_36: minwidth and minheight are set but not used in point_filter_simple_data...
authorGerald Pfeifer <gerald@pfeifer.com>
Sun, 15 Aug 2010 21:52:30 +0000 (23:52 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Mon, 16 Aug 2010 15:28:55 +0000 (17:28 +0200)
dlls/d3dx9_36/surface.c

index 82881bc3f3b7aca159156382d1ef22c36046e215..487f06f00254033ff32488600e6142958a822e0f 100644 (file)
@@ -573,15 +573,11 @@ static void point_filter_simple_data(CONST BYTE *src,  UINT  srcpitch, POINT  sr
     struct argb_conversion_info conv_info;
     DWORD channels[4];
 
-    UINT minwidth, minheight;
     UINT x, y;
 
     ZeroMemory(channels, sizeof(channels));
     init_argb_conversion_info(srcformat, destformat, &conv_info);
 
-    minwidth  = (srcsize.x < destsize.x) ? srcsize.x : destsize.x;
-    minheight = (srcsize.y < destsize.y) ? srcsize.y : destsize.y;
-
     for(y = 0;y < destsize.y;y++) {
         BYTE *destptr = dest + y * destpitch;
         const BYTE *bufptr = src + srcpitch * (y * srcsize.y / destsize.y);