mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18:54 +01:00
internal/ui: fix wrong panic messages
This commit is contained in:
parent
8ab6b74c93
commit
14a2c703df
@ -81,7 +81,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