Skip to content

Commit

Permalink
rename draw_pixel() to draw_fg_bg_pixel()
Browse files Browse the repository at this point in the history
  • Loading branch information
auerswal committed Feb 2, 2025
1 parent f012c14 commit 74aeb44
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions imgproc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */

Expand All @@ -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 */
Expand Down
2 changes: 1 addition & 1 deletion imgproc.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 74aeb44

Please sign in to comment.