Skip to content

Commit

Permalink
Applied fix from #279 for random colors
Browse files Browse the repository at this point in the history
  • Loading branch information
John-John Tedro committed Nov 30, 2012
1 parent 35922ce commit 1890c98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/text.cpp
Expand Up @@ -60,7 +60,7 @@ namespace text {
for (pos_t y = 0; y < s_bitmap_rows && y < image->get_height() + pen_y; y++) {
for (pos_t x = 0; x < s_bitmap_width && x < image->get_width() + pen_x; x++) {
color c(base);
c.a = buffer[x + y * bitmap->width];
c.a = color_i_to_f[buffer[x + y * bitmap->width]];
image->safe_blend_pixel(pen_x + x, pen_y + y, c);
}
}
Expand Down

0 comments on commit 1890c98

Please sign in to comment.