puzzles: clean up for rockbox
Disabled vprintf() call in Filling, and reordered vertices in Unequal. Change-Id: Ia3d8cd46ae3a7909b7dc2a8de762aa3173634d1e
This commit is contained in:
parent
6dc9d1d730
commit
e84fc26fb8
2 changed files with 13 additions and 13 deletions
|
@ -69,7 +69,7 @@
|
||||||
static unsigned char verbose;
|
static unsigned char verbose;
|
||||||
|
|
||||||
static void printv(const char *fmt, ...) {
|
static void printv(const char *fmt, ...) {
|
||||||
#ifndef PALM
|
#if !defined(PALM) && !defined(ROCKBOX)
|
||||||
if (verbose) {
|
if (verbose) {
|
||||||
va_list va;
|
va_list va;
|
||||||
va_start(va, fmt);
|
va_start(va, fmt);
|
||||||
|
|
|
@ -1683,18 +1683,18 @@ static void draw_gt(drawing *dr, int ox, int oy,
|
||||||
{
|
{
|
||||||
int coords[12];
|
int coords[12];
|
||||||
int xdx = (dx1+dx2 ? 0 : 1), xdy = (dx1+dx2 ? 1 : 0);
|
int xdx = (dx1+dx2 ? 0 : 1), xdy = (dx1+dx2 ? 1 : 0);
|
||||||
coords[0] = ox + xdx;
|
coords[0] = ox + xdx + dx1;
|
||||||
coords[1] = oy + xdy;
|
coords[1] = oy + xdy + dy1;
|
||||||
coords[2] = ox + xdx + dx1;
|
coords[2] = ox + xdx + dx1 + dx2;
|
||||||
coords[3] = oy + xdy + dy1;
|
coords[3] = oy + xdy + dy1 + dy2;
|
||||||
coords[4] = ox + xdx + dx1 + dx2;
|
coords[4] = ox - xdx + dx1 + dx2;
|
||||||
coords[5] = oy + xdy + dy1 + dy2;
|
coords[5] = oy - xdy + dy1 + dy2;
|
||||||
coords[6] = ox - xdx + dx1 + dx2;
|
coords[6] = ox - xdx + dx1;
|
||||||
coords[7] = oy - xdy + dy1 + dy2;
|
coords[7] = oy - xdy + dy1;
|
||||||
coords[8] = ox - xdx + dx1;
|
coords[8] = ox - xdx;
|
||||||
coords[9] = oy - xdy + dy1;
|
coords[9] = oy - xdy;
|
||||||
coords[10] = ox - xdx;
|
coords[10] = ox + xdx;
|
||||||
coords[11] = oy - xdy;
|
coords[11] = oy + xdy;
|
||||||
draw_polygon(dr, coords, 6, col, col);
|
draw_polygon(dr, coords, 6, col, col);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue