Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT CAIRO_ANTIALIAS_SUBPIXEL

Bug created :

https://bugs.eclipse.org/bugs/show_bug.cgi?id=413240


2013/7/17 sylvain mouquet <sylvain.mouquet@xxxxxxxxx>
Hi,

In the class org.eclipse.swt.graphics.GC, it's not possible to use Cairo.CAIRO_ANTIALIAS_SUBPIXEL in the method setAntialias :

public void setAntialias(int antialias) {
3046 if (handle == 0) SWT.error(SWT.ERROR_GRAPHIC_DISPOSED);
3047 if (data.cairo == 0 && antialias == SWT.DEFAULT) return;
3048 int mode = 0;
3049 switch (antialias) {
3050 case SWT.DEFAULT: mode = Cairo.CAIRO_ANTIALIAS_DEFAULT; break;
3051 case SWT.OFF: mode = Cairo.CAIRO_ANTIALIAS_NONE; break;
3052 case SWT.ON: mode = Cairo.CAIRO_ANTIALIAS_GRAY;
3053            break;
3054 default:
3055 SWT.error(SWT.ERROR_INVALID_ARGUMENT);
3056 }
3057    initCairo();
3058    long /*int*/ cairo = data.cairo;
3059    Cairo.cairo_set_antialias(cairo, mode);
3060}

it's possible to add it ?

Thanks,
Sylvain



--
Cordialement,
Sylvain

Back to the top