add a note to readme
This commit is contained in:
parent
e0e59f1d96
commit
f6e713ade0
|
@ -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.
|
||||
|
|
10
window.go
10
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,
|
||||
)
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue