Skip to content

Commit

Permalink
add display for all platforms
Browse files Browse the repository at this point in the history
  • Loading branch information
SimonDanisch committed Jul 6, 2018
1 parent 531c772 commit 9287cf7
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Makie.jl
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,23 @@ const NT = Theme
export NT

const has_ffmpeg = Ref(false)

struct MakieDisplay <: Display
end

# Hacky workaround, for the difficulty of removing closed screens from the display stack
# So we just leave the makiedisplay on stack, and then just get the singleton gl display for now!
function Base.display(::MakieDisplay, scene::Scene)
display(global_gl_screen(), scene)
end

function __init__()
has_ffmpeg[] = try
success(`ffmpeg -h`)
catch
false
end
pushdisplay(MakieDisplay())
end

function logo()
Expand Down

0 comments on commit 9287cf7

Please sign in to comment.