From: Kimmo R. <ki...@us...> - 2010-03-19 18:22:32
|
Update of /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/j2d In directory sfp-cvsdas-1.v30.ch3.sourceforge.com:/tmp/cvs-serv25122/src/games/stendhal/client/gui/j2d Modified Files: TextBoxFactory.java Log Message: Draw the regural rectangular text boxes filled as well, to avoid compatibility problems with openjdk Index: TextBoxFactory.java =================================================================== RCS file: /cvsroot/arianne/stendhal/src/games/stendhal/client/gui/j2d/TextBoxFactory.java,v retrieving revision 1.9 retrieving revision 1.10 diff -C2 -d -r1.9 -r1.10 *** TextBoxFactory.java 18 Mar 2010 22:59:58 -0000 1.9 --- TextBoxFactory.java 19 Mar 2010 18:22:23 -0000 1.10 *************** *** 127,134 **** private void drawRectangle(final Graphics2D g2d, final Color fillColor, final Color outLineColor, final int width, final int height) { ! g2d.setColor(fillColor); ! g2d.fillRect(BUBBLE_OFFSET, 0, width, height); g2d.setColor(outLineColor); ! g2d.drawRect(BUBBLE_OFFSET, 0, width - 1, height - 1); } --- 127,136 ---- private void drawRectangle(final Graphics2D g2d, final Color fillColor, final Color outLineColor, final int width, final int height) { ! // Using filled rectangles to work around a rendering ! // incompatibility in openjdk. g2d.setColor(outLineColor); ! g2d.fillRect(BUBBLE_OFFSET, 0, width, height); ! g2d.setColor(fillColor); ! g2d.fillRect(BUBBLE_OFFSET + 1, 1, width - 2, height -2); } |