From 8aac73458acf1f5a1ab9288ced06e464eed05d44 Mon Sep 17 00:00:00 2001 From: Pierre Curto Date: Sat, 28 Aug 2021 23:16:24 +0200 Subject: [PATCH] app: set the type of the orientation and Windowed/Fullscreen options Those variables didn't make it clear that they were Options. Signed-off-by: Pierre Curto --- app/window.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/app/window.go b/app/window.go index eb661303..3cbd126b 100644 --- a/app/window.go +++ b/app/window.go @@ -552,9 +552,9 @@ func (q *queue) Events(k event.Tag) []event.Event { var ( // Windowed is the normal window mode with OS specific window decorations. - Windowed = windowMode(wm.Windowed) + Windowed Option = windowMode(wm.Windowed) // Fullscreen is the full screen window mode. - Fullscreen = windowMode(wm.Fullscreen) + Fullscreen Option = windowMode(wm.Fullscreen) ) // windowMode sets the window mode. @@ -568,11 +568,11 @@ func windowMode(mode wm.WindowMode) Option { var ( // AnyOrientation allows the window to be freely orientated. - AnyOrientation = orientation(wm.AnyOrientation) + AnyOrientation Option = orientation(wm.AnyOrientation) // LandscapeOrientation constrains the window to landscape orientations. - LandscapeOrientation = orientation(wm.LandscapeOrientation) + LandscapeOrientation Option = orientation(wm.LandscapeOrientation) // PortraitOrientation constrains the window to portrait orientations. - PortraitOrientation = orientation(wm.PortraitOrientation) + PortraitOrientation Option = orientation(wm.PortraitOrientation) ) // orientation sets the orientation of the app.