summaryrefslogtreecommitdiff
path: root/core/fxge/win32
diff options
context:
space:
mode:
Diffstat (limited to 'core/fxge/win32')
-rw-r--r--core/fxge/win32/cfx_windowsdib.h1
-rw-r--r--core/fxge/win32/fx_win32_device.cpp9
-rw-r--r--core/fxge/win32/fx_win32_print.cpp4
-rw-r--r--core/fxge/win32/win32_int.h2
4 files changed, 0 insertions, 16 deletions
diff --git a/core/fxge/win32/cfx_windowsdib.h b/core/fxge/win32/cfx_windowsdib.h
index e59e9d60a4..3ecbb5835d 100644
--- a/core/fxge/win32/cfx_windowsdib.h
+++ b/core/fxge/win32/cfx_windowsdib.h
@@ -43,7 +43,6 @@ class CFX_WindowsDIB : public CFX_DIBitmap {
static CFX_RetainPtr<CFX_DIBitmap> LoadFromFile(const char* filename);
static CFX_RetainPtr<CFX_DIBitmap> LoadDIBitmap(WINDIB_Open_Args_ args);
- HDC GetDC() const { return m_hMemDC; }
HBITMAP GetWindowsBitmap() const { return m_hBitmap; }
void LoadFromDevice(HDC hDC, int left, int top);
diff --git a/core/fxge/win32/fx_win32_device.cpp b/core/fxge/win32/fx_win32_device.cpp
index 6e960f95b4..43d53e1bb0 100644
--- a/core/fxge/win32/fx_win32_device.cpp
+++ b/core/fxge/win32/fx_win32_device.cpp
@@ -929,10 +929,6 @@ bool CGdiDeviceDriver::GetClipBox(FX_RECT* pRect) {
return !!(::GetClipBox(m_hDC, (RECT*)pRect));
}
-void* CGdiDeviceDriver::GetPlatformSurface() const {
- return (void*)m_hDC;
-}
-
void CGdiDeviceDriver::DrawLine(float x1, float y1, float x2, float y2) {
if (!m_bMetafileDCType) { // EMF drawing is not bound to the DC.
int startOutOfBoundsFlag = (x1 < 0) | ((x1 > m_Width) << 1) |
@@ -1368,11 +1364,6 @@ CFX_WindowsDevice::CFX_WindowsDevice(HDC hDC) {
CFX_WindowsDevice::~CFX_WindowsDevice() {}
-HDC CFX_WindowsDevice::GetDC() const {
- IFX_RenderDeviceDriver* pRDD = GetDeviceDriver();
- return pRDD ? reinterpret_cast<HDC>(pRDD->GetPlatformSurface()) : nullptr;
-}
-
// static
IFX_RenderDeviceDriver* CFX_WindowsDevice::CreateDriver(HDC hDC) {
int device_type = ::GetDeviceCaps(hDC, TECHNOLOGY);
diff --git a/core/fxge/win32/fx_win32_print.cpp b/core/fxge/win32/fx_win32_print.cpp
index 86636b5bfa..f060c04127 100644
--- a/core/fxge/win32/fx_win32_print.cpp
+++ b/core/fxge/win32/fx_win32_print.cpp
@@ -491,7 +491,3 @@ bool CPSPrinterDriver::DrawDeviceText(int nChars,
return m_PSRenderer.DrawText(nChars, pCharPos, pFont, pObject2Device,
font_size, color);
}
-
-void* CPSPrinterDriver::GetPlatformSurface() const {
- return m_hDC;
-}
diff --git a/core/fxge/win32/win32_int.h b/core/fxge/win32/win32_int.h
index a5fc853de5..2f69c0ea57 100644
--- a/core/fxge/win32/win32_int.h
+++ b/core/fxge/win32/win32_int.h
@@ -156,7 +156,6 @@ class CGdiDeviceDriver : public IFX_RenderDeviceDriver {
uint32_t color,
int blend_type) override;
bool GetClipBox(FX_RECT* pRect) override;
- void* GetPlatformSurface() const override;
void DrawLine(float x1, float y1, float x2, float y2);
@@ -322,7 +321,6 @@ class CPSPrinterDriver : public IFX_RenderDeviceDriver {
const CFX_Matrix* pObject2Device,
float font_size,
uint32_t color) override;
- void* GetPlatformSurface() const override;
HDC m_hDC;
bool m_bCmykOutput;