From 45c6196e552d92cf726edaaad2f443ca29b70af0 Mon Sep 17 00:00:00 2001 From: Erik Auerswald Date: Thu, 13 Mar 2008 13:43:58 +0000 Subject: [PATCH] fix a bug introduced bey the previous refactorization: draw_[fb]g_pixel() called draw_pixel() and therefore ssocr_set_imlib_color() with an incorrect color argument --- ssocr.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ssocr.c b/ssocr.c index d6a406c..2ae1085 100644 --- a/ssocr.c +++ b/ssocr.c @@ -92,13 +92,13 @@ void draw_pixel(Imlib_Image *image, int x, int y, fg_bg_t color) /* draw a foreground pixel */ void draw_fg_pixel(Imlib_Image *image, int x, int y) { - draw_pixel(image, x, y, ssocr_foreground); + draw_pixel(image, x, y, FG); } /* draw a background pixel */ void draw_bg_pixel(Imlib_Image *image, int x, int y) { - draw_pixel(image, x, y, ssocr_background); + draw_pixel(image, x, y, BG); } /* check if a pixel is set regarding current foreground/background colors */