Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ruanhaishen
redis
Commits
77bdfb53
Commit
77bdfb53
authored
Sep 12, 2018
by
antirez
Browse files
LOLWUT: increase the translation factor.
parent
0dd8fd06
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/lolwut.c
View file @
77bdfb53
...
@@ -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
/
4
;
sx
+=
r2
*
square_side
/
3
;
sy
+=
r3
*
square_side
/
4
;
sy
+=
r3
*
square_side
/
3
;
}
}
lwDrawSquare
(
canvas
,
sx
,
sy
,
square_side
,
angle
);
lwDrawSquare
(
canvas
,
sx
,
sy
,
square_side
,
angle
);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment