app,app/internal/wm: implement ViewEvent for macOS

Move the deprecated setWantsBestResolutionOpenGLSurface to GL-specific
code while we're here.

Signed-off-by: Elias Naur <mail@eliasnaur.com>
This commit is contained in:
Elias Naur
2021-05-16 14:57:20 +02:00
parent 413bff8766
commit 1ec408280e
9 changed files with 46 additions and 5 deletions
+4
View File
@@ -28,6 +28,8 @@ import (
"gioui.org/io/system"
)
type ViewEvent struct{}
type winConstraints struct {
minWidth, minHeight int32
maxWidth, maxHeight int32
@@ -790,3 +792,5 @@ func configForDPI(dpi int) unit.Metric {
PxPerSp: ppdp,
}
}
func (_ ViewEvent) ImplementsEvent() {}