tetris: lower the next-piece preview a few more pixels within its frame
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -289,7 +289,7 @@ static void render() {
|
||||
draw_text(sx, py0, 1, C_DIM, "NEXT");
|
||||
// framed preview box for the next piece
|
||||
int boxY = py0 + 10;
|
||||
int boxH = 48;
|
||||
int boxH = 52;
|
||||
XSetForeground(dpy, gc, C_DIM);
|
||||
XDrawRectangle(dpy, back, gc, sx, boxY, winW - sx - 4, boxH);
|
||||
int nc[4][2];
|
||||
@@ -305,7 +305,7 @@ static void render() {
|
||||
int pcols = maxx - minx + 1;
|
||||
int prows = maxy - miny + 1;
|
||||
int nx0 = sx + ((winW - sx - 4) - pcols * pcell) / 2;
|
||||
int ny0 = boxY + (boxH - prows * pcell) / 2;
|
||||
int ny0 = boxY + (boxH - prows * pcell) / 2 + 8; // sit lower in the frame
|
||||
XSetForeground(dpy, gc, C_HEAD);
|
||||
for (int i = 0; i < 4; i++) {
|
||||
int cx = nx0 + (nc[i][0] - minx) * pcell;
|
||||
|
||||
Reference in New Issue
Block a user