Skip to content

Commit

Permalink
d.text: Remove unused variables (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
HuidaeCho committed Mar 9, 2021
1 parent 77f468a commit 727f118
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions display/d.text/main.c
Expand Up @@ -354,13 +354,8 @@ int main(int argc, char **argv)
D_text_rotation(rotation * 180.0 / M_PI);

if (text) {
double x2, y2;

x2 = x;
y2 = y;

if (text[0])
draw_text(text, &x2, &y2, size, align, rotation, bold, do_background, fg_color, bg_color);
draw_text(text, &x, &y, size, align, rotation, bold, do_background, fg_color, bg_color);

/* reset */
D_text_size(5, 5);
Expand Down

0 comments on commit 727f118

Please sign in to comment.