From f6e713ade0145dc62a4b1adaf12cf105214c8dba Mon Sep 17 00:00:00 2001 From: faiface <faiface@ksp.sk> Date: Mon, 23 Jan 2017 22:27:27 +0100 Subject: [PATCH] add a note to readme --- README.md | 3 +++ window.go | 10 +++++----- 2 files changed, 8 insertions(+), 5 deletions(-) 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, ) }) } -- GitLab