fix set-smoothing (to be a no-op) when Cairo is disabled
svn: r9832
This commit is contained in:
parent
5d16ec7ea5
commit
77d67718bc
|
@ -3829,18 +3829,6 @@ Bool wxWindowDC::SetCairoBrush()
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
void wxWindowDC::SetAntiAlias(int v)
|
||||
{
|
||||
#ifdef WX_USE_CAIRO
|
||||
if (v != anti_alias) {
|
||||
/* In case we go from aligned to not: */
|
||||
X->reset_cairo_clip = 1;
|
||||
}
|
||||
|
||||
wxDC::SetAntiAlias(v);
|
||||
#endif
|
||||
}
|
||||
|
||||
void wxWindowDC::SetAlpha(double d)
|
||||
{
|
||||
wxDC::SetAlpha(d);
|
||||
|
@ -3933,3 +3921,15 @@ double wxWindowDC::SmoothingXFormHL(double h, double y)
|
|||
return h;
|
||||
}
|
||||
#endif
|
||||
|
||||
void wxWindowDC::SetAntiAlias(int v)
|
||||
{
|
||||
#ifdef WX_USE_CAIRO
|
||||
if (v != anti_alias) {
|
||||
/* In case we go from aligned to not: */
|
||||
X->reset_cairo_clip = 1;
|
||||
}
|
||||
|
||||
wxDC::SetAntiAlias(v);
|
||||
#endif
|
||||
}
|
||||
|
|
|
@ -202,14 +202,14 @@ public:
|
|||
void SetGLConfig(wxGLConfig *cfg);
|
||||
#endif
|
||||
|
||||
void SetAntiAlias(int v);
|
||||
|
||||
#ifdef WX_USE_CAIRO
|
||||
void InitCairoDev();
|
||||
void ReleaseCairoDev();
|
||||
Bool SetCairoPen();
|
||||
Bool SetCairoBrush();
|
||||
|
||||
void SetAntiAlias(int v);
|
||||
|
||||
void SetAlpha(double d);
|
||||
|
||||
Bool AlignSmoothing();
|
||||
|
|
Loading…
Reference in New Issue
Block a user