summaryrefslogtreecommitdiff
path: root/vcl/inc/win
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/inc/win')
-rw-r--r--vcl/inc/win/DWriteTextRenderer.hxx8
-rw-r--r--vcl/inc/win/salgdi.h7
2 files changed, 6 insertions, 9 deletions
diff --git a/vcl/inc/win/DWriteTextRenderer.hxx b/vcl/inc/win/DWriteTextRenderer.hxx
index b822a6bca488..1cdf67d04a39 100644
--- a/vcl/inc/win/DWriteTextRenderer.hxx
+++ b/vcl/inc/win/DWriteTextRenderer.hxx
@@ -23,6 +23,8 @@
#include <d2d1.h>
#include <dwrite.h>
+#include <systools/win32/comtools.hxx>
+
#include <win/winlayout.hxx>
enum class D2DTextAntiAliasMode
@@ -37,7 +39,6 @@ class D2DWriteTextOutRenderer : public TextOutRenderer
{
public:
explicit D2DWriteTextOutRenderer(bool bRenderingModeNatural);
- virtual ~D2DWriteTextOutRenderer() override;
bool operator()(GenericSalLayout const &rLayout,
SalGraphics &rGraphics,
@@ -62,9 +63,8 @@ private:
IDWriteFontFace* GetDWriteFace(const WinFontInstance& rWinFont, float * lfSize) const;
bool performRender(GenericSalLayout const &rLayout, SalGraphics &rGraphics, HDC hDC, bool& bRetry, bool bRenderingModeNatural);
- ID2D1Factory * mpD2DFactory;
- IDWriteFactory * mpDWriteFactory;
- ID2D1DCRenderTarget * mpRT;
+ sal::systools::COMReference<ID2D1Factory> mpD2DFactory;
+ sal::systools::COMReference<ID2D1DCRenderTarget> mpRT;
const D2D1_RENDER_TARGET_PROPERTIES mRTProps;
bool mbRenderingModeNatural;
diff --git a/vcl/inc/win/salgdi.h b/vcl/inc/win/salgdi.h
index 80fafdeba56f..19edee0f4440 100644
--- a/vcl/inc/win/salgdi.h
+++ b/vcl/inc/win/salgdi.h
@@ -166,10 +166,6 @@ private:
RGNDATA* mpStdClipRgnData; // Cache Standard-ClipRegion-Data
int mnPenWidth; // line width
- inline static sal::systools::COMReference<IDWriteFactory> mxDWriteFactory;
- inline static sal::systools::COMReference<IDWriteGdiInterop> mxDWriteGdiInterop;
- inline static bool bDWriteDone = false;
-
// just call both from setHDC!
void InitGraphics();
void DeInitGraphics();
@@ -198,7 +194,8 @@ public:
SCREEN
};
- static void getDWriteFactory(IDWriteFactory** pFactory, IDWriteGdiInterop** pInterop = nullptr);
+ static IDWriteFactory* getDWriteFactory();
+ static IDWriteGdiInterop* getDWriteGdiInterop();
public: