Skip to content

Commit dde3cc4

Browse files
committed
Fix fullscreen mode
1 parent 2ffff5e commit dde3cc4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

Project.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "NeuralGraphicsGL"
22
uuid = "263f7e6d-e369-49af-a86e-c85638573b76"
33
authors = ["Anton Smirnov <[email protected]>"]
4-
version = "0.3.1"
4+
version = "0.4.0"
55

66
[deps]
77
CImGui = "5d785b6c-b76f-510e-a07c-3070796c7e87"
@@ -14,11 +14,11 @@ ModernGL = "66fc600b-dfda-50eb-8b99-91cfa97b1301"
1414
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1515

1616
[compat]
17-
CImGui = "2.0"
17+
CImGui = "2.3"
1818
GLFW = "3.4"
1919
FileIO = "1.16"
2020
ImageCore = "0.10"
2121
ImageIO = "0.6"
22-
ModernGL = "1.1.6"
23-
StaticArrays = "1.6"
24-
julia = "1.9"
22+
ModernGL = "1.1"
23+
StaticArrays = "1.9"
24+
julia = "1.10"

examples/demo.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ import NeuralGraphicsGL as NGL
99
function main()
1010
NGL.init()
1111
context = NGL.Context("でも"; width=1280, height=960)
12+
# context = NGL.Context("でも"; fullscreen=true)
1213
NGL.set_resize_callback!(context, NGL.resize_callback)
1314

1415
bbox = NGL.Box(zeros(SVector{3, Float32}), ones(SVector{3, Float32}))

src/NeuralGraphicsGL.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ function Context(
192192
window = if fullscreen
193193
GLFW.WindowHint(GLFW.RESIZABLE, false)
194194
monitor = GLFW.GetPrimaryMonitor()
195-
mode = unsafe_load(GLFW.GetVideoMode(monitor))
195+
mode = GLFW.GetVideoMode(monitor)
196196

197197
width, height = mode.width, mode.height
198198
GLFW.CreateWindow(width, height, title, monitor)

0 commit comments

Comments
 (0)