[Bug 450] TinyLaF 1.4.0 generated gui rendered incorrect using IcedTea6 1.8pre (6b18~pre1-1ubuntu1)

bugzilla-daemon at icedtea.classpath.org bugzilla-daemon at icedtea.classpath.org
Sat Jul 24 13:35:08 PDT 2010


http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=450


mwisnicki at gmail.com changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |mwisnicki at gmail.com




------- Comment #5 from mwisnicki at gmail.com  2010-07-24 20:35 -------
I was debugging this problem some time ago and found that rendering artifacts
are caused by differences in how OpenJDK renders single (zero?) pixel lines.

TinyLAF does a lot of drawPixel-type operation in the form of g.drawLine(x, y,
x, y)[1]. On SunJDK this always results in single pixel. On OpenJDK when
foreground color has alpha nothing will be drawn.
I worked around it by redirecting such drawLine calls to fillRect (IIRC) which
solved all rendering artifacts. Still, every component with text was one pixel
shorter vertically.

I did some investigation into differences in rendering between OpenJDK and
SunJDK using pixel comparison and there were a lot of such single-pixel
differences plus OpenJDK had really awful AA and curved lines. Unfortunately,
temporarily I don't have access to machine where I did this and kept notes.

BTW. don't compare screenshot from web page. It is using unknown version of
java on unknown operating system (judging by fonts it's WinXP). Better install
SunJDK for comparisons.

[1] e.g.
tinylaf-1_4_0_src\src\de\muntjak\tinylookandfeel\util\DrawRoutines.java:136


-- 
Configure bugmail: http://icedtea.classpath.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



More information about the distro-pkg-dev mailing list