X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/b7a496541327a8a86a147112fc4623aa9df19de8..3b96fc2f1b64f78bba7c755a5c14f618962f696b:/src/gtk1/dcclient.cpp diff --git a/src/gtk1/dcclient.cpp b/src/gtk1/dcclient.cpp index 626d46cf44..87bbe49cab 100644 --- a/src/gtk1/dcclient.cpp +++ b/src/gtk1/dcclient.cpp @@ -7,10 +7,6 @@ // Licence: wxWindows licence ///////////////////////////////////////////////////////////////////////////// -#if defined(__GNUG__) && !defined(NO_GCC_PRAGMA) -#pragma implementation "dcclient.h" -#endif - // For compilers that support precompilation, includes "wx.h". #include "wx/wxprec.h" @@ -1372,7 +1368,7 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest, { gdk_gc_set_clip_mask( m_textGC, mask ); gdk_gc_set_clip_origin( m_textGC, cx-xsrcMask, cy-ysrcMask ); - } + } } else { @@ -1385,7 +1381,7 @@ bool wxWindowDC::DoBlit( wxCoord xdest, wxCoord ydest, { gdk_gc_set_clip_mask( m_penGC, mask ); gdk_gc_set_clip_origin( m_penGC, cx-xsrcMask, cy-ysrcMask ); - } + } } } @@ -1888,11 +1884,14 @@ void wxWindowDC::SetFont( const wxFont &font ) PangoContext *oldContext = m_context; // We might want to use the X11 context for faster - // rendering on screen + // rendering on screen. + // MR: Lets not want to do this, as this introduces libpangox dependancy. +#if 0 if (m_font.GetNoAntiAliasing()) m_context = m_owner->GtkGetPangoX11Context(); else - m_context = m_owner->GtkGetPangoDefaultContext(); +#endif + m_context = m_owner->GtkGetPangoDefaultContext(); // If we switch back/forth between different contexts // we also have to create a new layout. I think so, @@ -2377,12 +2376,12 @@ void wxWindowDC::ComputeScaleAndOrigin() 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 ); - } + /* 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