Skip to content

Commit

Permalink
Merge pull request #35 from mattuntergassmair/v0.8_bugfix_text_display
Browse files Browse the repository at this point in the history
font rendering bugfix
  • Loading branch information
mattuntergassmair authored Dec 19, 2019
2 parents fc16c80 + 48a55ed commit 47a0ddc
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 47a0ddc

Please sign in to comment.