rename draw_pixel() to draw_fg_bg_pixel()

This commit is contained in:
Erik Auerswald
2025-02-02 20:42:52 +01:00
parent f012c14d93
commit 74aeb44f94
2 changed files with 4 additions and 4 deletions
+3 -3
View File
@@ -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 */
+1 -1
View File
@@ -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);