Skip to content

Commit 8f2fb11

Browse files
authored
Merge pull request #47 from mahomaps/splash-grad
Splash gradient changes
2 parents 00374d1 + 96a480c commit 8f2fb11

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/mahomaps/screens/Splash.java

+3-5
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,14 @@ protected void paint(Graphics g) {
2929
final int c1 = 0xa74134;
3030
final int c2 = 0xf8503c;
3131

32-
int gy = 0;
33-
for (int i = 1; i < h; i++) {
34-
gy++;
32+
for (int i = 0; i < h; i++) {
3533
g.setColor(ColorUtils.blend(c1, c2, i * 255 / h));
36-
g.drawLine(0, gy, w, gy);
34+
g.drawLine(0, i, w, i);
3735
}
3836

3937

4038
if (this.image == null) {
41-
g.setColor(0xff0000);
39+
g.setColor(-1);
4240
g.setFont(Font.getFont(0, Font.STYLE_BOLD, Font.SIZE_LARGE));
4341
int x = w >> 1;
4442
int y = h >> 1;

0 commit comments

Comments
 (0)