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
This commit is contained in:
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user