mirror of
git://git.tartarus.org/simon/puzzles.git
synced 2025-04-21 08:01:30 -07:00
Also, it's ugly to blank out pieces of the applet window in black.
Use the puzzle background colour, like the GTK front end does. (I know that renders the effect of the previous commit invisible, but it's the principle of the thing! :-) [originally from svn r9023]
This commit is contained in:
@ -307,7 +307,7 @@ public class PuzzleApplet extends JApplet implements Runtime.CallJavaCB {
|
|||||||
int left = arg2, right = arg2 + xarg2;
|
int left = arg2, right = arg2 + xarg2;
|
||||||
int top = arg3, bottom = arg3 + xarg3;
|
int top = arg3, bottom = arg3 + xarg3;
|
||||||
int width = getWidth(), height = getHeight();
|
int width = getWidth(), height = getHeight();
|
||||||
gg.setColor(Color.black);
|
gg.setColor(colors != null ? colors[0] : Color.black);
|
||||||
gg.fillRect(0, 0, left, height);
|
gg.fillRect(0, 0, left, height);
|
||||||
gg.fillRect(right, 0, width-right, height);
|
gg.fillRect(right, 0, width-right, height);
|
||||||
gg.fillRect(0, 0, width, top);
|
gg.fillRect(0, 0, width, top);
|
||||||
|
Reference in New Issue
Block a user