From 62bbb8818ed92c937466f2262484037284c88553 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Sun, 22 Dec 2019 12:52:50 +0900 Subject: [PATCH] ui: Update comments at WindowSize and SetWindowSize Fixes #1030 --- window.go | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/window.go b/window.go index 776c75a79..01e9b1a66 100644 --- a/window.go +++ b/window.go @@ -184,14 +184,20 @@ func fixWindowPosition(width, height int) { } } -// WindowSize returns the window size. On fullscreen mode, WindowSize returns the original window size. +// WindowSize returns the window size on desktops. +// WindowSize returns (0, 0) on other environments. +// +// On fullscreen mode, WindowSize returns the original window size. // // WindowSize is concurrent-safe. func WindowSize() (int, int) { return uiDriver().WindowSize() } -// SetWindowSize sets the window size. On fullscreen mode, SetWindowSize sets the original window size. +// SetWindowSize sets the window size on desktops. +// SetWindowSize does nothing on other environments. +// +// On fullscreen mode, SetWindowSize sets the original window size. // // SetWindowSize panics if width or height is not a positive number. //