mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
internal/ui: fix wrong panic messages
This commit is contained in:
parent
ee68b46a9a
commit
ff64920b73
@ -74,7 +74,7 @@ func (m *monitors) append(ms []*Monitor) []*Monitor {
|
||||
|
||||
func (m *monitors) primaryMonitor() *Monitor {
|
||||
if atomic.LoadInt32(&m.updateCalled) == 0 {
|
||||
panic("ui: (*monitors).primaryMonitor must be called before (*monitors).append is called")
|
||||
panic("ui: (*monitors).update must be called before (*monitors).primaryMonitor is called")
|
||||
}
|
||||
|
||||
m.m.Lock()
|
||||
|
Loading…
Reference in New Issue
Block a user