tetris: make next-piece preview frame 1px wider (top-left unchanged, piece untouched)
This commit is contained in:
Binary file not shown.
Binary file not shown.
@@ -291,7 +291,7 @@ static void render() {
|
||||
int boxY = py0 + 10;
|
||||
int boxH = 52;
|
||||
XSetForeground(dpy, gc, C_DIM);
|
||||
XDrawRectangle(dpy, back, gc, sx, boxY, winW - sx - 4, boxH);
|
||||
XDrawRectangle(dpy, back, gc, sx - 2, boxY + 1, winW - sx - 3, boxH); // frame 2px left, 1px down, 1px wider (piece unchanged)
|
||||
int nc[4][2];
|
||||
piece_cells(nextType, 0, nc);
|
||||
int minx = 4, miny = 4, maxx = -1, maxy = -1;
|
||||
|
||||
Reference in New Issue
Block a user