diff --git a/imgproc.c b/imgproc.c index 14d20a9..852b25d 100644 --- a/imgproc.c +++ b/imgproc.c @@ -79,7 +79,7 @@ void ssocr_set_color(fg_bg_t color) } /* draw a fore- or background pixel */ -void draw_pixel(Imlib_Image *image, int x, int y, fg_bg_t color) +void draw_fg_bg_pixel(Imlib_Image *image, int x, int y, fg_bg_t color) { Imlib_Image *current_image; /* save current image */ @@ -93,13 +93,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, FG); + draw_fg_bg_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, BG); + draw_fg_bg_pixel(image, x, y, BG); } /* draw a pixel of a given color */ diff --git a/imgproc.h b/imgproc.h index 991c574..fe73167 100644 --- a/imgproc.h +++ b/imgproc.h @@ -32,7 +32,7 @@ void set_bg_color(int color); void ssocr_set_color(fg_bg_t color); /* draw a fore- or background pixel */ -void draw_pixel(Imlib_Image *image, int x, int y, fg_bg_t color); +void draw_fg_bg_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);