Refactor wxGCDC to delegate acquiring/releasing HDC to wxGraphicsContext
Instead of implementing MSW-specific code to handle HDC for GDI+ context directly in wxGCDC delegate acquiring/releasing HDC to underlying wxGraphicsContext. Decoupling GDI+-specific code from wxGCDC will allow us to implement handling HDC in other graphics renderers in a clean way.
This commit is contained in:
@@ -38,7 +38,7 @@ public:
|
||||
|
||||
#ifdef __WXMSW__
|
||||
// override wxDC virtual functions to provide access to HDC associated with
|
||||
// this Graphics object (implemented in src/msw/graphics.cpp)
|
||||
// underlying wxGraphicsContext
|
||||
virtual WXHDC AcquireHDC() wxOVERRIDE;
|
||||
virtual void ReleaseHDC(WXHDC hdc) wxOVERRIDE;
|
||||
#endif // __WXMSW__
|
||||
|
Reference in New Issue
Block a user