From e559499a44e2c38a7ad85475054f5f653c5508b0 Mon Sep 17 00:00:00 2001 From: faiface <faiface@ksp.sk> Date: Wed, 25 Jan 2017 18:12:11 +0100 Subject: [PATCH] rename Window.SetFullscreen -> SetMonitor --- window.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/window.go b/window.go index b430d9b..2a168c6 100644 --- a/window.go +++ b/window.go @@ -154,7 +154,7 @@ func NewWindow(config WindowConfig) (*Window, error) { } w.initInput() - w.SetFullscreen(config.Fullscreen) + w.SetMonitor(config.Fullscreen) w.canvas = NewCanvas(config.Width, config.Height, false) w.Update() @@ -260,13 +260,13 @@ func (w *Window) Hide() { }) } -// SetFullscreen sets a window fullscreen on a given monitor. If the monitor is nil, the window +// SetMonitor sets a window fullscreen on a given monitor. If the monitor is nil, the window // will be resored to windowed instead. // // Note, that there is nothing about the resolution of the fullscreen window. The window is // automatically set to the monitor's resolution. If you want a different resolution, you need // to set it manually with SetSize method. -func (w *Window) SetFullscreen(monitor *Monitor) { +func (w *Window) SetMonitor(monitor *Monitor) { if w.Monitor() != monitor { if monitor == nil { mainthread.Call(func() { -- GitLab