From d8fd3d33a4bd5dc0f647f5999e31d2dacd06e239 Mon Sep 17 00:00:00 2001 From: Yves Rizoud Date: Wed, 26 Sep 2012 00:37:49 +0000 Subject: [PATCH] Fix issue 473: Brush-rotate cursor has display issues git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@2011 416bcca6-2ee7-4201-b75f-2eb2f807beb1 --- src/graph.c | 21 ++++++++++++--------- src/graph.h | 2 +- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/src/graph.c b/src/graph.c index 4a696e77..15935a6c 100644 --- a/src/graph.c +++ b/src/graph.c @@ -1221,7 +1221,7 @@ void Fill_general(byte fill_color) } // Affichage d'un point pour une preview en xor - void Pixel_figure_preview_xor(word x_pos,word y_pos,byte color) + void Pixel_figure_preview_xor(short x_pos,short y_pos,byte color) { (void)color; // unused @@ -1783,14 +1783,17 @@ void Draw_line_preview_xor(short start_x,short start_y,short end_x,short end_y,b int w, h; Pixel_figure=Pixel_figure_preview_xor; Draw_line_general(start_x,start_y,end_x,end_y,color); - if (start_x<0) - start_x=0; - if (start_y<0) - start_y=0; - if (end_x<0) - end_x=0; - if (end_y<0) - end_y=0; + + if (start_x