Moved comment closer to the relevant code
This commit is contained in:
parent
e9067c9a7c
commit
357f958cd1
2
conway.c
2
conway.c
@ -67,10 +67,10 @@ int main(int argc, char **argv) {
|
|||||||
tb_select_input_mode(TB_INPUT_MOUSE);
|
tb_select_input_mode(TB_INPUT_MOUSE);
|
||||||
tb_select_output_mode(TB_OUTPUT_256);
|
tb_select_output_mode(TB_OUTPUT_256);
|
||||||
|
|
||||||
// Cells are 2 characters wide so they look square
|
|
||||||
char *buffers[2];
|
char *buffers[2];
|
||||||
int flipflop = 0;
|
int flipflop = 0;
|
||||||
resize:
|
resize:
|
||||||
|
// Cells are 2 characters wide so they look square
|
||||||
W = tb_width()/2, H = tb_height();
|
W = tb_width()/2, H = tb_height();
|
||||||
buffers[0] = calloc(W*H, sizeof(char));
|
buffers[0] = calloc(W*H, sizeof(char));
|
||||||
buffers[1] = calloc(W*H, sizeof(char));
|
buffers[1] = calloc(W*H, sizeof(char));
|
||||||
|
Loading…
Reference in New Issue
Block a user