Skip to content

Commit

Permalink
Fix #193: Remove use of deleted MonitorProperties
Browse files Browse the repository at this point in the history
Bug introduced in PR #128.
  • Loading branch information
jayschwa committed Dec 26, 2019
1 parent 0950b84 commit ecab517
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Project.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name = "GLFW"
uuid = "f7f18e0c-5ee9-5ccd-a5bf-e8befd85ed98"
author = ["Jay Petacat <[email protected]>", "Simon Danisch <[email protected]>"]
version = "3.2.0"
version = "3.2.1"

[deps]
GLFW_jll = "0656b61e-2033-5cc2-a64a-77c0f6c09b89"
Expand Down
6 changes: 2 additions & 4 deletions src/glfw3.jl
Original file line number Diff line number Diff line change
Expand Up @@ -668,10 +668,8 @@ GetProcAddress(procname::AbstractString) = ccall((:glfwGetProcAddress, libglfw),
Returns the monitor resolution of the primary monitor.
"""
function primarymonitorresolution()
props = MonitorProperties(GetPrimaryMonitor())
w,h = props.videomode.width, props.videomode.height
# Vec(Int(w),Int(h))
(Int(w),Int(h))
m = GetPrimaryMonitor().videomode
(Int(m.width), Int(m.height))
end

#Came from GLWindow.jl/screen.jl
Expand Down

2 comments on commit ecab517

@jayschwa
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/7164

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if Julia TagBot is installed, or can be done manually through the github interface, or via:

git tag -a v3.2.1 -m "<description of version>" ecab5175afe7beb78b16ea48ffc30cd47db87592
git push origin v3.2.1

Please sign in to comment.