     }
     for (y=ymin; y<=ymax; y++)
         for (x=xmin; x<=xmax; x++)
-            set_pixel(x, y, color);
+            lcd.drawPixel(x, y, color);
 }
 
 /*

/*
 * LCD screen.
 */
#define MAXROW      48
#define MAXCOL      84

static unsigned char screen[MAXROW*MAXCOL/8];

/*
 * Output piece coordinates given its center and angle

    h *= 4;
    w *= 4;
    if (visible) {
        fill_rect(LCDWIDTH-1 - h, w, LCDWIDTH-1 - (h + 3), w + 3, 1);
    } else {
        fill_rect(LCDWIDTH-1 - h, w, LCDWIDTH-1 - (h + 3), w + 3, 0);

        if (h == (PITDEPTH-1)*5)
            lcd.drawPixel(LCDWIDTH-1 - (h + 3), w + 2, 1);

        if (w == 0)
            lcd.drawPixel(LCDWIDTH-1 - (h + 2), w, 1);
        else if (w % 16 == 12)
            lcd.drawPixel(LCDWIDTH-1 - (h + 2), w + 3, 1);
    }
}

