[patch] GtkMainThread.c calculate the dpi value in case of gtk-xft-dpi can't
Andreas Tobler
toa@pop.agri.ch
Fri Jun 25 21:38:00 GMT 2004
Hi,
currently if we build the awt peers with recent gtk/pango packages we
run into troubles if gtk-xft-dpi can't calculate a reasonable value.
Then it returns -1 as default value and we end up with a bogus value for
dpi_conversion_factor.
The attached patch fixes this. Tested on darwin-7.4.0 with the TestAWT.java.
Ok on main?
Andreas
2004-06-25 Andreas Tobler <a.tobler@schweiz.ch>
* jni/gtk-peer/gnu_java_awt_peer_gtk_GtkMainThread.c
(init_dpi_conversion_factor): Check for int_dpi < 0 in case gtk-xft-dpi
can no calculate the right value.
(dpi_changed_cb): Mark *pspec as unsused.
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: GtkMainThread.diff
URL: <http://gcc.gnu.org/pipermail/java-patches/attachments/20040625/0e4ba705/attachment.ksh>
More information about the Java-patches
mailing list