Renamed wxPrintNativeData methods to better match
those of the preexisting wxMac class. This should
make transition of the wxMac classes to the new
wxPrintNativeData classes easier.
Renamed wxWindowsPrintNativeData to a proper name
that is less confusing (GetNativeData -> GetDevMode).
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29956 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -286,7 +286,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
||||
wxWindowsPrintNativeData *data =
|
||||
(wxWindowsPrintNativeData *) printDataConst.GetNativeData();
|
||||
|
||||
data->ConvertFrom( printDataConst );
|
||||
data->TransferFrom( printDataConst );
|
||||
|
||||
wxChar* driverName = (wxChar*) NULL;
|
||||
|
||||
@@ -301,7 +301,7 @@ WXHDC WXDLLEXPORT wxGetPrinterDC(const wxPrintData& printDataConst)
|
||||
|
||||
LPDEVMODE lpDevMode = (LPDEVMODE) NULL;
|
||||
|
||||
HGLOBAL hDevMode = (HGLOBAL)(DWORD) data->GetNativeData();
|
||||
HGLOBAL hDevMode = (HGLOBAL)(DWORD) data->GetDevMode();
|
||||
|
||||
if ( hDevMode )
|
||||
lpDevMode = (DEVMODE*) GlobalLock(hDevMode);
|
||||
|
||||
Reference in New Issue
Block a user