Small fixes to 1bpp->1bpp stretching
Modified: trunk/reactos/subsys/win32k/dib/dib1bpp.c

Modified: trunk/reactos/subsys/win32k/dib/dib1bpp.c
--- trunk/reactos/subsys/win32k/dib/dib1bpp.c	2005-10-24 21:42:24 UTC (rev 18761)
+++ trunk/reactos/subsys/win32k/dib/dib1bpp.c	2005-10-24 21:54:26 UTC (rev 18762)
@@ -642,9 +642,9 @@
 				for (DesY=DestRect->bottom-zoomY; DesY>=0; DesY-=zoomY)
 				{
 					if (DesIsBiggerY)
+						sy = (int) ((ULONG) DesSizeY * (ULONG) DesY) / ((ULONG) SrcSizeY); 
+					else
 						sy = (int) ((ULONG) SrcSizeY * (ULONG) DesY) / ((ULONG) DesSizeY);
-					else
-						sy = (int) ((ULONG) DesSizeY * (ULONG) DesY) / ((ULONG) SrcSizeY); 
                 				
 					if (sy > SourceRect->bottom) break;
 
@@ -652,14 +652,14 @@
 
 					for (DesX=DestRect->right-zoomX; DesX>=0; DesX-=zoomX)				
 					{
-						sx = (int) ((ULONG) DesSizeX * (ULONG) DesX) / ((ULONG) SrcSizeX);                 				       	            
+						sx = (int) ((ULONG) SrcSizeX * (ULONG) DesX) / ((ULONG) DesSizeX);                 				       	            
 					
 						if (sx > SourceRect->right) break;
 					
 						color = DIB_1BPP_GetPixel(SourceSurf, sx, sy);
 						
 						for (count=DesY;count<saveY;count++)
-							DIB_1BPP_HLine(DestSurf, DesX, saveX, count, color);
+							DIB_1BPP_HLine(DestSurf, DesX, DesX + zoomX, count, color);
 					                    						
 					 }
 		          }