Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/neutrinolabs/libpainter.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJay Sorg <jay.sorg@gmail.com>2016-05-24 03:27:16 +0300
committerJay Sorg <jay.sorg@gmail.com>2016-05-24 03:27:16 +0300
commitd1fa42dc07db8f9e2c37ff60cdc1d33ea36adb69 (patch)
tree37b41172107ba8bcc329145a4e635f1dba2edab3
parent6e098d5e8451de848db964ab6f794b75f784f516 (diff)
fill_rect fix
-rw-r--r--src/painter.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/painter.c b/src/painter.c
index b851d1e..b8d97c8 100644
--- a/src/painter.c
+++ b/src/painter.c
@@ -154,7 +154,8 @@ painter_fill_rect(void *handle, struct painter_bitmap *dst,
{
for (index = 0; index < cx; index++)
{
- painter_set_pixel(pt, dst, x, y, pt->fgcolor, dst->format);
+ painter_set_pixel(pt, dst, x + index, y + jndex, pt->fgcolor,
+ dst->format);
}
}
return PT_ERROR_NONE;