24 #include <freerdp/config.h>
30 #include <freerdp/freerdp.h>
31 #include <freerdp/gdi/gdi.h>
33 #include <freerdp/gdi/dc.h>
60 INT32 gdi_SetROP2(
HGDI_DC hdc, INT32 fnDrawMode)
62 INT32 prevDrawMode = hdc->drawMode;
64 if (fnDrawMode > 0 && fnDrawMode <= 16)
65 hdc->drawMode = fnDrawMode;
79 UINT32 gdi_GetBkColor(
HGDI_DC hdc)
94 UINT32 gdi_SetBkColor(
HGDI_DC hdc, UINT32 crColor)
96 UINT32 previousBkColor = hdc->bkColor;
97 hdc->bkColor = crColor;
98 return previousBkColor;
110 UINT32 gdi_GetBkMode(
HGDI_DC hdc)
125 INT32 gdi_SetBkMode(
HGDI_DC hdc, INT32 iBkMode)
127 if (iBkMode == GDI_OPAQUE || iBkMode == GDI_TRANSPARENT)
129 INT32 previousBkMode = hdc->bkMode;
130 hdc->bkMode = iBkMode;
131 return previousBkMode;
147 UINT32 gdi_SetTextColor(
HGDI_DC hdc, UINT32 crColor)
149 UINT32 previousTextColor = hdc->textColor;
150 hdc->textColor = crColor;
151 return previousTextColor;