diff --git a/README.md b/README.md index 02d16e2..a38706d 100644 --- a/README.md +++ b/README.md @@ -1,2 +1,5 @@ # pixel A simple and fast desktop multimedia/gamedev library. + +The core features of the library are pretty much completed. I'm doing some proofreading and +improving quality of the code. Will **announce** the library after. diff --git a/window.go b/window.go index f3eef6b..b430d9b 100644 --- a/window.go +++ b/window.go @@ -284,15 +284,15 @@ func (w *Window) SetFullscreen(monitor *Monitor) { w.restore.xpos, w.restore.ypos = w.window.GetPos() w.restore.width, w.restore.height = w.window.GetSize() - width, height := monitor.Size() - refreshRate := monitor.RefreshRate() + mode := monitor.monitor.GetVideoMode() + w.window.SetMonitor( monitor.monitor, 0, 0, - int(width), - int(height), - int(refreshRate), + mode.Width, + mode.Height, + mode.RefreshRate, ) }) }