mirror of
https://gitlab.freedesktop.org/cairo/cairo.git
synced 2026-05-05 16:58:01 +02:00
xlib: Precise and Imprecise were reversed.
The intention was to switch to imprecise mode by default, using the exact rendering mode only upon request.
This commit is contained in:
parent
b322b2e619
commit
9fffc0e120
1 changed files with 4 additions and 4 deletions
|
|
@ -1065,14 +1065,14 @@ _cairo_xlib_surface_set_precision (cairo_xlib_display_t *display,
|
|||
int precision;
|
||||
|
||||
switch (antialias) {
|
||||
case CAIRO_ANTIALIAS_NONE:
|
||||
case CAIRO_ANTIALIAS_DEFAULT:
|
||||
precision = PolyModePrecise;
|
||||
break;
|
||||
case CAIRO_ANTIALIAS_SUBPIXEL:
|
||||
case CAIRO_ANTIALIAS_GRAY:
|
||||
precision = PolyModeImprecise;
|
||||
break;
|
||||
case CAIRO_ANTIALIAS_NONE:
|
||||
case CAIRO_ANTIALIAS_SUBPIXEL:
|
||||
precision = PolyModePrecise;
|
||||
break;
|
||||
}
|
||||
|
||||
if (surface->precision != precision) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue