revert 17709 for it break streach for windows mode. That why I did only got black...
authorMagnus Olsen <magnus@greatlord.com>
Sun, 1 Jan 2006 16:00:45 +0000 (16:00 +0000)
committerMagnus Olsen <magnus@greatlord.com>
Sun, 1 Jan 2006 16:00:45 +0000 (16:00 +0000)
svn path=/trunk/; revision=20519

reactos/subsys/win32k/dib/dib16bpp.c
reactos/subsys/win32k/dib/dib1bpp.c
reactos/subsys/win32k/dib/dib24bpp.c
reactos/subsys/win32k/dib/dib32bpp.c
reactos/subsys/win32k/dib/dib4bpp.c
reactos/subsys/win32k/dib/dib8bpp.c

index f8dd070..8b19566 100644 (file)
@@ -630,11 +630,11 @@ BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
      BitsPerFormat(SourceSurf->iBitmapFormat), SourceRect->left, SourceRect->top, SourceRect->right, SourceRect->bottom,
      DestRect->left, DestRect->top, DestRect->right, DestRect->bottom);
 
-    SrcSizeY = SourceRect->bottom - SourceRect->top;
-    SrcSizeX = SourceRect->right - SourceRect->left;
+    SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
   
-    DesSizeY = DestRect->bottom - DestRect->top;
-    DesSizeX = DestRect->right - DestRect->left;   
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;     
    
        zoomX = DesSizeX / SrcSizeX;
     if (zoomX==0) zoomX=1;
index 8487cbf..b92f5f2 100644 (file)
@@ -518,11 +518,11 @@ BOOLEAN DIB_1BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
    int saveY;
    BOOLEAN DesIsBiggerY=FALSE;
 
-   SrcSizeY = SourceRect->bottom - SourceRect->top;
-   SrcSizeX = SourceRect->right - SourceRect->left;
-
-   DesSizeY = DestRect->bottom - DestRect->top;
-   DesSizeX = DestRect->right - DestRect->left;
+   SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
+  
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;  
 
    zoomX = DesSizeX / SrcSizeX;
    if (zoomX==0) zoomX=1;
index 2dc2c1a..924f38d 100644 (file)
@@ -513,11 +513,11 @@ BOOLEAN DIB_24BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
    int saveY;
    BOOLEAN DesIsBiggerY=FALSE;
 
-   SrcSizeY = SourceRect->bottom - SourceRect->top;
-   SrcSizeX = SourceRect->right - SourceRect->left;
-
-   DesSizeY = DestRect->bottom - DestRect->top;
-   DesSizeX = DestRect->right - DestRect->left;
+   SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
+  
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;  
 
    zoomX = DesSizeX / SrcSizeX;
    if (zoomX==0) zoomX=1;
index d19bd0f..c4df9da 100644 (file)
@@ -557,11 +557,11 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
             BitsPerFormat(SourceSurf->iBitmapFormat), SourceRect->left, SourceRect->top, SourceRect->right, 
             SourceRect->bottom, DestRect->left, DestRect->top, DestRect->right, DestRect->bottom);
 
-    SrcSizeY = SourceRect->bottom - SourceRect->top;
-    SrcSizeX = SourceRect->right - SourceRect->left;
+    SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
   
-    DesSizeY = DestRect->bottom - DestRect->top;
-    DesSizeX = DestRect->right - DestRect->left; 
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;   
 
     zoomX = DesSizeX / SrcSizeX;
     if (zoomX==0) zoomX=1;
index 67b3572..d47ce23 100644 (file)
@@ -397,11 +397,11 @@ BOOLEAN DIB_4BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
    int saveY;
    BOOLEAN DesIsBiggerY=FALSE;
   
-   SrcSizeY = SourceRect->bottom - SourceRect->top;
-   SrcSizeX = SourceRect->right - SourceRect->left;
-
-   DesSizeY = DestRect->bottom - DestRect->top;
-   DesSizeX = DestRect->right - DestRect->left;
+    SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
+  
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;   
 
    zoomX = DesSizeX / SrcSizeX;
    if (zoomX==0) zoomX=1;
index 0a015d5..32ab9ee 100644 (file)
@@ -480,11 +480,11 @@ BOOLEAN DIB_8BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
      BitsPerFormat(SourceSurf->iBitmapFormat), SourceRect->left, SourceRect->top, SourceRect->right, SourceRect->bottom,
      DestRect->left, DestRect->top, DestRect->right, DestRect->bottom);
 
-   SrcSizeY = SourceRect->bottom - SourceRect->top;
-   SrcSizeX = SourceRect->right - SourceRect->left;
-
-   DesSizeY = DestRect->bottom - DestRect->top;
-   DesSizeX = DestRect->right - DestRect->left;
+    SrcSizeY = SourceRect->bottom;
+    SrcSizeX = SourceRect->right;
+  
+    DesSizeY = DestRect->bottom;
+    DesSizeX = DestRect->right;   
 
    zoomX = DesSizeX / SrcSizeX;
    if (zoomX==0) zoomX=1;