add a note to readme

This commit is contained in:
faiface 2017-01-23 22:27:27 +01:00
parent e0e59f1d96
commit f6e713ade0
2 changed files with 8 additions and 5 deletions

View File

@ -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.

View File

@ -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,
)
})
}