| Index: core/fxge/win32/fx_win32_device.cpp
|
| diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
|
| index caf271dff302c08e1296614dda566223d233da5c..b71f3ae97a10214832eb846f41a8bae1cab2104e 100644
|
| --- a/core/fxge/win32/fx_win32_device.cpp
|
| +++ b/core/fxge/win32/fx_win32_device.cpp
|
| @@ -507,6 +507,7 @@ CGdiDeviceDriver::CGdiDeviceDriver(HDC hDC, int device_class) {
|
| m_RenderCaps = FXRC_GET_BITS | FXRC_BIT_MASK;
|
| }
|
| }
|
| +
|
| int CGdiDeviceDriver::GetDeviceCaps(int caps_id) {
|
| switch (caps_id) {
|
| case FXDC_DEVICE_CLASS:
|
| @@ -522,6 +523,17 @@ int CGdiDeviceDriver::GetDeviceCaps(int caps_id) {
|
| }
|
| return 0;
|
| }
|
| +
|
| +void CGdiDeviceDriver::SaveState() {
|
| + SaveDC(m_hDC);
|
| +}
|
| +
|
| +void CGdiDeviceDriver::RestoreState(bool bKeepSaved) {
|
| + RestoreDC(m_hDC, -1);
|
| + if (bKeepSaved)
|
| + SaveDC(m_hDC);
|
| +}
|
| +
|
| void* CGdiDeviceDriver::GetClipRgn() {
|
| HRGN hClipRgn = CreateRectRgn(0, 0, 1, 1);
|
| if (::GetClipRgn(m_hDC, hClipRgn) == 0) {
|
|
|