mirror of
https://github.com/reactos/reactos.git
synced 2025-08-05 23:12:56 +00:00
Fix scanline increment for 32bpp stretch blts
svn path=/trunk/; revision=8965
This commit is contained in:
parent
776c1e9696
commit
9af64d9189
1 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
||||||
*/
|
*/
|
||||||
/* $Id: dib32bpp.c,v 1.16 2004/04/01 19:31:05 gvg Exp $ */
|
/* $Id: dib32bpp.c,v 1.17 2004/04/04 16:40:05 gvg Exp $ */
|
||||||
#undef WIN32_LEAN_AND_MEAN
|
#undef WIN32_LEAN_AND_MEAN
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
@ -391,7 +391,7 @@ void ScaleRectAvg32(PIXEL *Target, PIXEL *Source, int SrcWidth, int SrcHeight,
|
||||||
int TgtWidth, int TgtHeight, int srcPitch, int dstPitch)
|
int TgtWidth, int TgtHeight, int srcPitch, int dstPitch)
|
||||||
{
|
{
|
||||||
int NumPixels = TgtHeight;
|
int NumPixels = TgtHeight;
|
||||||
int IntPart = ((SrcHeight / TgtHeight) * srcPitch) >> 1; //(SrcHeight / TgtHeight) * SrcWidth;
|
int IntPart = ((SrcHeight / TgtHeight) * srcPitch) / 4; //(SrcHeight / TgtHeight) * SrcWidth;
|
||||||
int FractPart = SrcHeight % TgtHeight;
|
int FractPart = SrcHeight % TgtHeight;
|
||||||
int Mid = TgtHeight >> 1;
|
int Mid = TgtHeight >> 1;
|
||||||
int E = 0;
|
int E = 0;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue