revert 17709 for it break streach for windows mode. That why I did only
got black windows in winquake with windows mode 640x480.
Modified: trunk/reactos/subsys/win32k/dib/dib16bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib1bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib24bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib4bpp.c
Modified: trunk/reactos/subsys/win32k/dib/dib8bpp.c
_____
Modified: trunk/reactos/subsys/win32k/dib/dib16bpp.c
--- trunk/reactos/subsys/win32k/dib/dib16bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib16bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -630,11 +630,11 @@
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;
_____
Modified: trunk/reactos/subsys/win32k/dib/dib1bpp.c
--- trunk/reactos/subsys/win32k/dib/dib1bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib1bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -518,12 +518,12 @@
int saveY;
BOOLEAN DesIsBiggerY=FALSE;
- SrcSizeY = SourceRect->bottom - SourceRect->top;
- SrcSizeX = SourceRect->right - SourceRect->left;
+ SrcSizeY = SourceRect->bottom;
+ SrcSizeX = SourceRect->right;
+
+ DesSizeY = DestRect->bottom;
+ DesSizeX = DestRect->right;
- DesSizeY = DestRect->bottom - DestRect->top;
- DesSizeX = DestRect->right - DestRect->left;
-
zoomX = DesSizeX / SrcSizeX;
if (zoomX==0) zoomX=1;
_____
Modified: trunk/reactos/subsys/win32k/dib/dib24bpp.c
--- trunk/reactos/subsys/win32k/dib/dib24bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib24bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -513,12 +513,12 @@
int saveY;
BOOLEAN DesIsBiggerY=FALSE;
- SrcSizeY = SourceRect->bottom - SourceRect->top;
- SrcSizeX = SourceRect->right - SourceRect->left;
+ SrcSizeY = SourceRect->bottom;
+ SrcSizeX = SourceRect->right;
+
+ DesSizeY = DestRect->bottom;
+ DesSizeX = DestRect->right;
- DesSizeY = DestRect->bottom - DestRect->top;
- DesSizeX = DestRect->right - DestRect->left;
-
zoomX = DesSizeX / SrcSizeX;
if (zoomX==0) zoomX=1;
_____
Modified: trunk/reactos/subsys/win32k/dib/dib32bpp.c
--- trunk/reactos/subsys/win32k/dib/dib32bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib32bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -557,11 +557,11 @@
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;
_____
Modified: trunk/reactos/subsys/win32k/dib/dib4bpp.c
--- trunk/reactos/subsys/win32k/dib/dib4bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib4bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -397,12 +397,12 @@
int saveY;
BOOLEAN DesIsBiggerY=FALSE;
- SrcSizeY = SourceRect->bottom - SourceRect->top;
- SrcSizeX = SourceRect->right - SourceRect->left;
+ SrcSizeY = SourceRect->bottom;
+ SrcSizeX = SourceRect->right;
+
+ DesSizeY = DestRect->bottom;
+ DesSizeX = DestRect->right;
- DesSizeY = DestRect->bottom - DestRect->top;
- DesSizeX = DestRect->right - DestRect->left;
-
zoomX = DesSizeX / SrcSizeX;
if (zoomX==0) zoomX=1;
_____
Modified: trunk/reactos/subsys/win32k/dib/dib8bpp.c
--- trunk/reactos/subsys/win32k/dib/dib8bpp.c 2006-01-01 15:48:03 UTC
(rev 20518)
+++ trunk/reactos/subsys/win32k/dib/dib8bpp.c 2006-01-01 16:00:45 UTC
(rev 20519)
@@ -480,12 +480,12 @@
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;
+ DesSizeX = DestRect->right;
- DesSizeY = DestRect->bottom - DestRect->top;
- DesSizeX = DestRect->right - DestRect->left;
-
zoomX = DesSizeX / SrcSizeX;
if (zoomX==0) zoomX=1;
Show replies by date