diff options
author | Francis Kung <fkung@redhat.com> | 2006-12-15 21:21:03 +0000 |
---|---|---|
committer | Francis Kung <fkung@redhat.com> | 2006-12-15 21:21:03 +0000 |
commit | cf134b26bd5142ff2351f9b8bdd8e0574fb4b07a (patch) | |
tree | 7a90a5dea9068a7c342a0d5a11004b6a99f9f825 /native | |
parent | 44be7a61031a611e68f6ed57854021660a802fa5 (diff) | |
download | classpath-cf134b26bd5142ff2351f9b8bdd8e0574fb4b07a.tar.gz |
2006-12-15 Francis Kung <fkung@redhat.com>
* gnu/java/awt/peer/gtk/CairoGraphics2D.java
(antialias): New private field.
(ignoreAA): New private field.
(cairoSetAntialias): New native method.
(draw): Check anti-alias setting.
(drawGlyphVector): Likewise.
(drawString): Likewise.
(fill): Likewise.
(setAntialias): New private method.
(setup): Set default antialias value.
* include/gnu_java_awt_peer_gtk_CairoGraphics2D.h: Regenerated.
* native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c:
(gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetAntialias): New method.
Diffstat (limited to 'native')
-rw-r--r-- | native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c index bd63ac366..f7c2edc7a 100644 --- a/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c +++ b/native/jni/gtk-peer/gnu_java_awt_peer_gtk_CairoGraphics2D.c @@ -777,6 +777,20 @@ Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoFillRect cairo_fill(gr->cr); } +JNIEXPORT void JNICALL +Java_gnu_java_awt_peer_gtk_CairoGraphics2D_cairoSetAntialias +(JNIEnv *env __attribute__ ((unused)), jobject obj __attribute__ ((unused)), + jlong pointer, jboolean aa) +{ + struct cairographics2d *gr = JLONG_TO_PTR(struct cairographics2d, pointer); + g_assert (gr != NULL); + + if (aa) + cairo_set_antialias(gr->cr, CAIRO_ANTIALIAS_GRAY); + else + cairo_set_antialias(gr->cr, CAIRO_ANTIALIAS_NONE); +} + static void update_pattern_transform (struct cairographics2d *gr) { |