Commit 0dd8fd06 authored by antirez's avatar antirez
Browse files

LOLWUT: change default size to fit a normal terminal better.

parent 43385c43
...@@ -197,8 +197,8 @@ lwCanvas *lwDrawSchotter(int console_cols, int squares_per_row, int squares_per_ ...@@ -197,8 +197,8 @@ lwCanvas *lwDrawSchotter(int console_cols, int squares_per_row, int squares_per_
if (rand() % 2) r2 = -r2; if (rand() % 2) r2 = -r2;
if (rand() % 2) r3 = -r3; if (rand() % 2) r3 = -r3;
angle = r1; angle = r1;
sx += r2*square_side/5; sx += r2*square_side/4;
sy += r3*square_side/5; sy += r3*square_side/4;
} }
lwDrawSquare(canvas,sx,sy,square_side,angle); lwDrawSquare(canvas,sx,sy,square_side,angle);
} }
...@@ -240,13 +240,13 @@ sds lwRenderCanvas(lwCanvas *canvas) { ...@@ -240,13 +240,13 @@ sds lwRenderCanvas(lwCanvas *canvas) {
* *
* LOLWUT [terminal columns] [squares-per-row] [squares-per-col] * LOLWUT [terminal columns] [squares-per-row] [squares-per-col]
* *
* By default the command uses 80 columns, 6 squares per row, 10 squares * By default the command uses 66 columns, 8 squares per row, 12 squares
* per column. * per column.
*/ */
void lolwutCommand(client *c) { void lolwutCommand(client *c) {
long cols = 80; long cols = 66;
long squares_per_row = 6; long squares_per_row = 8;
long squares_per_col = 10; long squares_per_col = 12;
/* Parse the optional arguments if any. */ /* Parse the optional arguments if any. */
if (c->argc > 1 && if (c->argc > 1 &&
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment