diff --git a/window.go b/window.go index b430d9b2fa6eaac7ca527122afa0f83cd43fddba..2a168c634925bf6fd6431fe47195f22bb201390f 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() {