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;
|
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)
|
void wxWindowDC::SetAlpha(double d)
|
||||||
{
|
{
|
||||||
wxDC::SetAlpha(d);
|
wxDC::SetAlpha(d);
|
||||||
|
@ -3933,3 +3921,15 @@ double wxWindowDC::SmoothingXFormHL(double h, double y)
|
||||||
return h;
|
return h;
|
||||||
}
|
}
|
||||||
#endif
|
#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);
|
void SetGLConfig(wxGLConfig *cfg);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
void SetAntiAlias(int v);
|
||||||
|
|
||||||
#ifdef WX_USE_CAIRO
|
#ifdef WX_USE_CAIRO
|
||||||
void InitCairoDev();
|
void InitCairoDev();
|
||||||
void ReleaseCairoDev();
|
void ReleaseCairoDev();
|
||||||
Bool SetCairoPen();
|
Bool SetCairoPen();
|
||||||
Bool SetCairoBrush();
|
Bool SetCairoBrush();
|
||||||
|
|
||||||
void SetAntiAlias(int v);
|
|
||||||
|
|
||||||
void SetAlpha(double d);
|
void SetAlpha(double d);
|
||||||
|
|
||||||
Bool AlignSmoothing();
|
Bool AlignSmoothing();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user