mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 09:50:02 +00:00
Fixing strechblt dib16 and dib32 can be compile with -O2 (gcc) reporeted by jimtalor, it did not work on real hardware with -O2 when it was run with winqauke with some setting see bug 1520
svn path=/trunk/; revision=21995
This commit is contained in:
parent
b6a61aafb6
commit
b3edee282e
2 changed files with 16 additions and 9 deletions
|
@ -687,8 +687,9 @@ BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_4BPP_GetPixel(SourceSurf, sx, sy);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + 2);
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
|
@ -713,8 +714,8 @@ BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_8BPP_GetPixel(SourceSurf, sx, sy);
|
||||
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + 2);
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
|
@ -740,8 +741,9 @@ BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_24BPP_GetPixel(SourceSurf, sx, sy);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + 2);
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
|
@ -766,8 +768,9 @@ BOOLEAN DIB_16BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_32BPP_GetPixel(SourceSurf, sx, sy);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + 2);
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
|
|
|
@ -609,7 +609,8 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_4BPP_GetPixel(SourceSurf, sx, sy);
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
}
|
||||
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
|
@ -633,7 +634,8 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_8BPP_GetPixel(SourceSurf, sx, sy);
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
}
|
||||
|
@ -656,7 +658,8 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_16BPP_GetPixel(SourceSurf, sx, sy);
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
}
|
||||
|
@ -679,7 +682,8 @@ BOOLEAN DIB_32BPP_StretchBlt(SURFOBJ *DestSurf, SURFOBJ *SourceSurf,
|
|||
{
|
||||
sx = ((DesX * SrcSizeX) / DesSizeX) + SourceRect->left;
|
||||
color = DIB_24BPP_GetPixel(SourceSurf, sx, sy);
|
||||
*DestBits = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
color = XLATEOBJ_iXlate(ColorTranslation, color);
|
||||
*DestBits = color;
|
||||
}
|
||||
DestBits = (PULONG)((ULONG_PTR)DestBits + DifflDelta);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue