=== modified file 'src/com/goldencode/p2j/ui/client/gui/CaptionButton.java' --- src/com/goldencode/p2j/ui/client/gui/CaptionButton.java 2015-08-26 22:14:27 +0000 +++ src/com/goldencode/p2j/ui/client/gui/CaptionButton.java 2015-08-31 16:55:14 +0000 @@ -141,11 +141,14 @@ gd.drawLine(scaleX(4), scaleY(3), width - scaleX(4), height - scaleY(3)); // SW-NE line + gd.setLineStroke(LineStroke.SPECIFIED_WIDTH, scaleX(1)); gd.drawLine(scaleX(4), height - scaleY(3), width - scaleX(4), scaleY(3)); - - // TODO: the SW-NE line is painted with 1/2 thickness of the NW-SE line, - // this unfortunately limits the scaling capabilities - gd.drawLine(scaleX(5), height - scaleY(3), width - scaleX(3), scaleY(3)); + int extent = scaleX(2); + int shift = extent >> 1; + for (int x = scaleX(5), y = height - scaleY(3); x <= width - scaleX(4); x++, y--) + { + gd.fillRect(x - shift, y - shift, extent, extent); + } // these rects make the proper line ends gd.setColor(faceColor);