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:
@@ -1200,6 +1200,26 @@ void wxWindowDC::Destroy()
|
||||
m_bgGC = (GdkGC*) NULL;
|
||||
}
|
||||
|
||||
void wxWindowDC::ComputeScaleAndOrigin()
|
||||
{
|
||||
/* CMB: copy scale to see if it changes */
|
||||
double origScaleX = m_scaleX;
|
||||
double origScaleY = m_scaleY;
|
||||
|
||||
wxDC::ComputeScaleAndOrigin();
|
||||
|
||||
/* CMB: if scale has changed call SetPen to recalulate the line width */
|
||||
if ((m_scaleX != origScaleX || m_scaleY != origScaleY) &&
|
||||
(m_pen.Ok()))
|
||||
{
|
||||
/* 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 );
|
||||
}
|
||||
}
|
||||
|
||||
// Resolution in pixels per logical inch
|
||||
wxSize wxWindowDC::GetPPI() const
|
||||
{
|
||||
|
Reference in New Issue
Block a user