瀏覽代碼

d.text: Remove unused variables (#1440)

Huidae Cho 4 年之前
父節點
當前提交
727f118a43
共有 1 個文件被更改,包括 1 次插入6 次删除
  1. 1 6
      display/d.text/main.c

+ 1 - 6
display/d.text/main.c

@@ -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);