mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
[Win32k]
- Implement Gdi32 counterpart SetStretchBltMode for Win32k. svn path=/trunk/; revision=57699
This commit is contained in:
@@ -173,6 +173,7 @@ UINT FASTCALL IntGdiSetTextAlign(HDC hDC, UINT Mode);
|
||||
VOID FASTCALL DCU_SetDcUndeletable(HDC);
|
||||
BOOL FASTCALL IntSetDefaultRegion(PDC);
|
||||
ULONG TranslateCOLORREF(PDC pdc, COLORREF crColor);
|
||||
int FASTCALL GreSetStretchBltMode(HDC hdc, int iStretchMode);
|
||||
|
||||
|
||||
|
||||
|
||||
@@ -96,6 +96,29 @@ IntGdiSetTextColor(HDC hDC,
|
||||
return crOldColor;
|
||||
}
|
||||
|
||||
int
|
||||
FASTCALL
|
||||
GreSetStretchBltMode(HDC hDC, int iStretchMode)
|
||||
{
|
||||
PDC pdc;
|
||||
PDC_ATTR pdcattr;
|
||||
INT oSMode = 0;
|
||||
|
||||
pdc = DC_LockDc(hDC);
|
||||
if (pdc)
|
||||
{
|
||||
pdcattr = pdc->pdcattr;
|
||||
oSMode = pdcattr->lStretchBltMode;
|
||||
pdcattr->lStretchBltMode = iStretchMode;
|
||||
|
||||
// Wine returns an error here. We set the default.
|
||||
if ((iStretchMode <= 0) || (iStretchMode > MAXSTRETCHBLTMODE)) iStretchMode = WHITEONBLACK;
|
||||
|
||||
pdcattr->jStretchBltMode = iStretchMode;
|
||||
}
|
||||
return oSMode;
|
||||
}
|
||||
|
||||
VOID
|
||||
FASTCALL
|
||||
DCU_SetDcUndeletable(HDC hDC)
|
||||
|
||||
Reference in New Issue
Block a user