From fc3e4249221802e5ffad7888774a5fff7e066af6 Mon Sep 17 00:00:00 2001 From: Thomas Bernard Date: Fri, 15 Feb 2019 15:22:35 +0100 Subject: [PATCH] shut up Warning about Pixel_figure_no_screen() Also fix drawing at X=0 or Y=0 --- src/factory.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/factory.c b/src/factory.c index 08e24ee9..0b3b6cd0 100644 --- a/src/factory.c +++ b/src/factory.c @@ -210,10 +210,10 @@ void Update_colors_during_script(void) } /// Paint a pixel in image without updating the screen -void Pixel_figure_no_screen(short x_pos,short y_pos,byte color) +static void Pixel_figure_no_screen(word x_pos, word y_pos, byte color) { - if (x_pos>0 && y_pos >0 && x_pos