Skip to content

Commit

Permalink
Disable retina framebuffer because we can't really handle it
Browse files Browse the repository at this point in the history
See issue #41  and pr #46
  • Loading branch information
hismailbulut committed Dec 4, 2023
1 parent 51f6404 commit 1837109
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pkg/window/window.go
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,8 @@ func New(title string, width, height int, debugContext bool) (*Window, error) {
glfw.WindowHint(glfw.ScaleToMonitor, glfw.True)
// Focus to window after shown
glfw.WindowHint(glfw.FocusOnShow, glfw.True)
// Disable retina framebuffer
glfw.WindowHint(glfw.CocoaRetinaFramebuffer, glfw.False)

var err error
window.handle, err = glfw.CreateWindow(width, height, title, nil, nil)
Expand Down

0 comments on commit 1837109

Please sign in to comment.