Brush updates
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@8910 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -274,36 +274,6 @@ wxPaintDC::wxPaintDC(
|
||||
HPS hPS;
|
||||
HRGN hRgn;
|
||||
|
||||
memset(&g_paintStruct, '\0', sizeof(RECTL));
|
||||
if (!::WinQueryUpdateRect(GetWinHwnd(m_pCanvas), &g_paintStruct))
|
||||
{
|
||||
wxLogLastError("CreateRectRgn");
|
||||
// return;
|
||||
}
|
||||
m_hDC = (WXHDC) ::WinOpenWindowDC(GetWinHwnd(m_pCanvas));
|
||||
m_hPS = ::GpiCreatePS( wxGetInstance()
|
||||
,m_hDC
|
||||
,&vSizl
|
||||
,PU_PELS | GPIF_LONG | GPIA_ASSOC
|
||||
);
|
||||
|
||||
// Set the wxWindows color table
|
||||
::GpiCreateLogColorTable( m_hPS
|
||||
,0L
|
||||
,LCOLF_CONSECRGB
|
||||
,0L
|
||||
,(LONG)wxTheColourDatabase->m_nSize
|
||||
,(PLONG)wxTheColourDatabase->m_palTable
|
||||
);
|
||||
::GpiCreateLogColorTable( m_hPS
|
||||
,0L
|
||||
,LCOLF_RGB
|
||||
,0L
|
||||
,0L
|
||||
,NULL
|
||||
);
|
||||
|
||||
#if 0
|
||||
hPS = ::WinBeginPaint( GetWinHwnd(m_pCanvas)
|
||||
,NULLHANDLE
|
||||
,&g_paintStruct
|
||||
@@ -327,7 +297,6 @@ wxPaintDC::wxPaintDC(
|
||||
,NULL
|
||||
);
|
||||
}
|
||||
#endif
|
||||
|
||||
m_bIsPaintTime = TRUE;
|
||||
m_hDC = (WXHDC) -1; // to satisfy those anonizmous efforts
|
||||
|
Reference in New Issue
Block a user