Skip to content

Commit be6bd01

Browse files
committed
supporting opengl hires mode
1 parent 2517366 commit be6bd01

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

gui-lib/mred/private/wx/cocoa/canvas.rkt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,8 @@
419419
[gl-view (tell (tell RacketGLView alloc)
420420
initWithFrame: #:type _NSRect r
421421
pixelFormat: pf)])
422+
(when (and gl-config (send gl-config get-hires-mode))
423+
(tellv gl-view setWantsBestResolutionOpenGLSurface: #:type _uint 1))
422424
(when new-context
423425
(tellv gl-view setOpenGLContext: new-context)
424426
;; We're supposed to sync via `setView:' but it fails,

0 commit comments

Comments
 (0)