Skip to content

Commit

Permalink
Merge pull request #313 from jonathanBieler/link_cairo_fix
Browse files Browse the repository at this point in the history
allow for direct call for link_cairo
  • Loading branch information
tlnagy authored Oct 16, 2018
2 parents 71ffc8e + 5464bc5 commit f37d1fe
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Compose.jl
Original file line number Diff line number Diff line change
Expand Up @@ -159,8 +159,8 @@ end

function link_cairo()
@info "Loading Cairo backend into Compose.jl"
include("cairo_backends.jl")
include("immerse_backend.jl")
include(joinpath(@__DIR__,"cairo_backends.jl"))
include(joinpath(@__DIR__,"immerse_backend.jl"))
end

function __init__()
Expand Down
7 changes: 2 additions & 5 deletions src/cairo_backends.jl
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
for name in (:CairoContext, :CairoSurface, :CairoARGBSurface, :CairoEPSSurface,
:CairoPDFSurface, :CairoSVGSurface, :CairoImageSurface)
val = getfield(Cairo,name)
@eval const $name = $val
end
import Cairo: CairoContext, CairoSurface, CairoARGBSurface, CairoEPSSurface,
CairoPDFSurface, CairoSVGSurface, CairoImageSurface

abstract type ImageBackend end
abstract type PNGBackend <: ImageBackend end
Expand Down

0 comments on commit f37d1fe

Please sign in to comment.