Some wxOS2 compilation fixes after wxDC changes
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@51181 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
2a818b7a73
commit
7c71eb6a26
@ -57,6 +57,9 @@
|
||||
#include "wx/mac/printdlg.h"
|
||||
#include "wx/mac/private/print.h"
|
||||
#include "wx/mac/dcprint.h"
|
||||
#elif defined(__WXPM__)
|
||||
#include "wx/os2/dcprint.h"
|
||||
#include "wx/generic/prntdlgg.h"
|
||||
#else
|
||||
#include "wx/generic/prntdlgg.h"
|
||||
#include "wx/dcps.h"
|
||||
|
@ -27,6 +27,7 @@
|
||||
#include "wx/image.h"
|
||||
#endif
|
||||
|
||||
#include "wx/os2/dc.h"
|
||||
#include "wx/os2/private.h"
|
||||
|
||||
#include "wx/xpmdecod.h"
|
||||
@ -928,9 +929,12 @@ wxImage wxBitmap::ConvertToImage() const
|
||||
//
|
||||
// May already be selected into a PS
|
||||
//
|
||||
if ((pDC = GetSelectedInto()) != NULL)
|
||||
pDC = GetSelectedInto();
|
||||
const wxPMDCImpl *impl;
|
||||
if (pDC != NULL &&
|
||||
(impl = wxDynamicCast( pDC->GetImpl(), wxPMDCImpl )) != NULL)
|
||||
{
|
||||
hPSMem = pDC->GetHPS();
|
||||
hPSMem = impl->GetHPS();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -22,6 +22,7 @@
|
||||
#include "wx/log.h"
|
||||
#endif
|
||||
|
||||
#include "wx/os2/dc.h"
|
||||
#include "wx/os2/private.h"
|
||||
|
||||
IMPLEMENT_ABSTRACT_CLASS(wxControl, wxWindow)
|
||||
@ -215,7 +216,8 @@ WXHBRUSH wxControl::OnCtlColor(WXHDC hWxDC,
|
||||
void wxControl::OnEraseBackground( wxEraseEvent& rEvent )
|
||||
{
|
||||
RECTL vRect;
|
||||
HPS hPS = rEvent.GetDC()->GetHPS();
|
||||
wxPMDCImpl *impl = (wxPMDCImpl*) rEvent.GetDC()->GetImpl();
|
||||
HPS hPS = impl->GetHPS();
|
||||
SIZEL vSize = {0,0};
|
||||
|
||||
::GpiSetPS(hPS, &vSize, PU_PELS | GPIF_DEFAULT);
|
||||
|
Loading…
Reference in New Issue
Block a user