From b5aaf308a3934437382daf8f48ba62c3b416e23f Mon Sep 17 00:00:00 2001 From: Harald Oehlmann Date: Mon, 2 Sep 2019 12:05:08 +0200 Subject: [PATCH] 2019-09-01 Codemonkey82 Draw Maxicode bullseye for scale = 0.5 Ticket #119 (Commit correction) --- backend/raster.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/raster.c b/backend/raster.c index a5a41387..c1914efa 100644 --- a/backend/raster.c +++ b/backend/raster.c @@ -239,7 +239,7 @@ void draw_circle(char *pixelbuf, int image_width, int image_height, int x0, int } void draw_bullseye(char pixelbuf, int image_width, int image_height, int xoffset, int yoffset, int scaler) { - / Central bullseye in Maxicode symbols */ + /* Central bullseye in Maxicode symbols */ float x = 14.5 * scaler; float y = 15.0 * scaler; if(scaler < 10) { @@ -541,7 +541,7 @@ int plot_raster_maxicode(struct zint_symbol *symbol, int rotate_angle, int data_ } } - draw_bullseye(pixelbuf, image_width, image_height, (2.0 * xoffset), (2.0 * yoffset)) * scaler), scaler * 10); + draw_bullseye(pixelbuf, image_width, image_height, (2.0 * xoffset), (2.0 * yoffset), scaler * 10); // Virtual hexagon //draw_hexagon(pixelbuf, image_width, scaled_hexagon, hexagon_size, ((14 * 10) + (2 * xoffset)) * scaler, ((16 * 9) + (2 * yoffset)) * scaler);