Skip to content

Commit

Permalink
font rendering bugfix
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthias Untergassmair committed Dec 19, 2019
1 parent d0aac34 commit 48a55ed
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/rendermodels.jl
Original file line number Diff line number Diff line change
Expand Up @@ -94,9 +94,7 @@ end
function render_to_canvas(rendermodel::RenderModel, ctx::CairoContext, canvas_width::Integer, canvas_height::Integer)

# fill with background color
bgc = rendermodel.background_color
r,g,b,a = red(bgc), green(bgc), blue(bgc), alpha(bgc)
set_source_rgba(ctx, a,r,g,b)
set_source_rgba(ctx, rendermodel.background_color)
paint(ctx)

# render text if no other instructions
Expand Down

0 comments on commit 48a55ed

Please sign in to comment.