# HG changeset patch # User Matti Hamalainen # Date 1534337687 -10800 # Node ID 394c52d4763ac38af0b29225cb90dc05aed4715e # Parent 8a9a9fcc02f7d416a81b115a1fa36b72ce61ca00 Cosmetics. diff -r 8a9a9fcc02f7 -r 394c52d4763a Interface.pde --- a/Interface.pde Wed Aug 15 13:57:50 2018 +0300 +++ b/Interface.pde Wed Aug 15 15:54:47 2018 +0300 @@ -224,13 +224,14 @@ } -void e_rect(int x1, int y1, int w, int h, int rgb) { +void e_rect(int x1, int y1, int w, int h, int rgb) +{ int ad = x1 + y1 * width; - //updatepixels has to be handled elsewhere - for (int yy = 0; yy < h; yy++) { - for (int xx = 0; xx < w; xx++) { + for (int yy = 0; yy < h; yy++) + { + for (int xx = 0; xx < w; xx++) pixels[ad + xx] = rgb; - } + ad += width; } } @@ -239,9 +240,10 @@ void d_rect(int x1, int y1, int w, int h, int rgb) { int ad = x1 + y1 * width; - //updatepixels has to be handled elsewhere - for (int yy = 0; yy < h; yy++) { - for (int xx = 0; xx < w; xx++) { + for (int yy = 0; yy < h; yy++) + { + for (int xx = 0; xx < w; xx++) + { if (xx == 0 || yy == 0 || xx == w - 1 || yy == h - 1) pixels[ad + xx] = rgb; } @@ -1241,6 +1243,7 @@ if (machine == PLUS4M || machine == PLUS4) { icontable(240 * g_uizoom, height - 32 * g_uizoom, 2, 1); } + colorselector(0, height - 32 * g_uizoom); colorindicator(256 * g_uizoom, height - 32 * g_uizoom); }