added d2d
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@77560 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -16,7 +16,7 @@
|
|||||||
|
|
||||||
#include "wx/dc.h"
|
#include "wx/dc.h"
|
||||||
|
|
||||||
#if wxUSE_GRAPHICS_CONTEXT
|
#if wxUSE_GRAPHICS_GDIPLUS
|
||||||
|
|
||||||
#ifndef WX_PRECOMP
|
#ifndef WX_PRECOMP
|
||||||
#include "wx/msw/wrapcdlg.h"
|
#include "wx/msw/wrapcdlg.h"
|
||||||
@@ -1995,11 +1995,24 @@ IMPLEMENT_DYNAMIC_CLASS(wxGDIPlusRenderer,wxGraphicsRenderer)
|
|||||||
|
|
||||||
static wxGDIPlusRenderer gs_GDIPlusRenderer;
|
static wxGDIPlusRenderer gs_GDIPlusRenderer;
|
||||||
|
|
||||||
wxGraphicsRenderer* wxGraphicsRenderer::GetDefaultRenderer()
|
wxGraphicsRenderer* wxGraphicsRenderer::GetGDIPlusRenderer()
|
||||||
{
|
{
|
||||||
return &gs_GDIPlusRenderer;
|
return &gs_GDIPlusRenderer;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
wxGraphicsRenderer* wxGraphicsRenderer::GetDefaultRenderer()
|
||||||
|
{
|
||||||
|
wxGraphicsRenderer* renderer;
|
||||||
|
|
||||||
|
#if wxUSE_GRAPHICS_DIRECT2D
|
||||||
|
renderer = wxGraphicsRenderer::GetDirect2DRenderer();
|
||||||
|
if (renderer == NULL)
|
||||||
|
#endif
|
||||||
|
renderer = wxGraphicsRenderer::GetGDIPlusRenderer();
|
||||||
|
|
||||||
|
return renderer;
|
||||||
|
}
|
||||||
|
|
||||||
bool wxGDIPlusRenderer::EnsureIsLoaded()
|
bool wxGDIPlusRenderer::EnsureIsLoaded()
|
||||||
{
|
{
|
||||||
// load gdiplus.dll if not yet loaded, but don't bother doing it again
|
// load gdiplus.dll if not yet loaded, but don't bother doing it again
|
||||||
@@ -2391,4 +2404,4 @@ void wxGCDC::ReleaseHDC(WXHDC hdc)
|
|||||||
g->ReleaseHDC((HDC)hdc);
|
g->ReleaseHDC((HDC)hdc);
|
||||||
}
|
}
|
||||||
|
|
||||||
#endif // wxUSE_GRAPHICS_CONTEXT
|
#endif // wxUSE_GRAPHICS_GDIPLUS
|
Reference in New Issue
Block a user