summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
0eb6fce)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@53417
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
#include "wx/icon.h"
#endif
#include "wx/icon.h"
#endif
#ifdef __MSL__
#if __MSL__ >= 0x6000
#include "math.h"
#ifdef __MSL__
#if __MSL__ >= 0x6000
#include "math.h"
#ifdef __WXMAC__
#include "wx/mac/uma.h"
#ifdef __WXMAC__
#include "wx/mac/uma.h"
+ #include "wx/mac/dcprint.h"
#else
#include "CoreServices/CoreServices.h"
#include "ApplicationServices/ApplicationServices.h"
#else
#include "CoreServices/CoreServices.h"
#include "ApplicationServices/ApplicationServices.h"
{
#ifdef __WXMAC__
const wxDCImpl* impl = dc.GetImpl();
{
#ifdef __WXMAC__
const wxDCImpl* impl = dc.GetImpl();
+ wxPrinterDCImpl *print_impl = wxDynamicCast( impl, wxPrinterDCImpl );
+ if (print_impl)
+ {
+ int w, h;
+ print_impl->GetSize( &w, &h );
+ return new wxMacCoreGraphicsContext( this,
+ (CGContextRef)(print_impl->GetGraphicsContext()->GetNativeContext()), (wxDouble) w, (wxDouble) h );
+ }