Skip to content

Commit edeff48

Browse files
committed
fix config to match new 0.11 version in overview_scene guide
1 parent 6d41604 commit edeff48

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

guides/overview_scene.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,18 +105,18 @@ configuration of a ViewPort from the config.exs file...
105105
import Config
106106

107107
# Configure the main viewport for the Scenic application
108-
config :my_app, :viewport, %{
108+
config :my_app, :viewport, [
109109
name: :main_viewport,
110110
size: {700, 600},
111111
default_scene: {MyApp.Scene.Example, :scene_init_data},
112112
drivers: [
113-
%{
114-
module: Scenic.Driver.Glfw,
115-
name: :glfw,
113+
[
114+
module: Scenic.Driver.Local,
115+
name: :local,
116116
opts: [resizeable: false, title: "Example Application"],
117-
}
117+
]
118118
]
119-
}
119+
]
120120

121121
The line `default_scene: {MyApp.Scene.Example, :scene_init_data}`
122122
configures the ViewPort to always start the scene defined by the

0 commit comments

Comments
 (0)