Got a new idea to do cursors, including global
ones and busy etc. Fixed an assert in UserScaler from PS code. git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@2577 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -97,22 +97,8 @@ wxSize wxDC::GetPPI() const
|
||||
|
||||
void wxDC::ComputeScaleAndOrigin()
|
||||
{
|
||||
/* CMB: copy scale to see if it changes */
|
||||
double origScaleX = m_scaleX;
|
||||
double origScaleY = m_scaleY;
|
||||
|
||||
m_scaleX = m_logicalScaleX * m_userScaleX;
|
||||
m_scaleY = m_logicalScaleY * m_userScaleY;
|
||||
|
||||
/* CMB: if scale has changed call SetPen to recalulate the line width */
|
||||
if (m_scaleX != origScaleX || m_scaleY != origScaleY)
|
||||
{
|
||||
/* this is a bit artificial, but we need to force wxDC to think
|
||||
the pen has changed */
|
||||
wxPen pen = m_pen;
|
||||
m_pen = wxNullPen;
|
||||
SetPen( pen );
|
||||
}
|
||||
}
|
||||
|
||||
void wxDC::SetMapMode( int mode )
|
||||
|
Reference in New Issue
Block a user