mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 09:52:03 +01:00
ebiten: Remove old comments
This commit is contained in:
parent
5031ab67a7
commit
2b1e961540
@ -66,15 +66,14 @@ func (c *uiContext) Layout(outsideWidth, outsideHeight float64) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *uiContext) updateOffscreen() {
|
func (c *uiContext) updateOffscreen() {
|
||||||
|
d := uiDriver().DeviceScaleFactor()
|
||||||
|
sw, sh := int(c.outsideWidth*d), int(c.outsideHeight*d)
|
||||||
|
|
||||||
ow, oh := c.game.Layout(int(c.outsideWidth), int(c.outsideHeight))
|
ow, oh := c.game.Layout(int(c.outsideWidth), int(c.outsideHeight))
|
||||||
if ow <= 0 || oh <= 0 {
|
if ow <= 0 || oh <= 0 {
|
||||||
panic("ebiten: Layout must return positive numbers")
|
panic("ebiten: Layout must return positive numbers")
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: This is duplicated with mobile/ebitenmobileview/funcs.go. Refactor this.
|
|
||||||
d := uiDriver().DeviceScaleFactor()
|
|
||||||
sw, sh := int(c.outsideWidth*d), int(c.outsideHeight*d)
|
|
||||||
|
|
||||||
if c.screen != nil {
|
if c.screen != nil {
|
||||||
if w, h := c.screen.Size(); w != sw || h != sh {
|
if w, h := c.screen.Size(); w != sw || h != sh {
|
||||||
c.screen.Dispose()
|
c.screen.Dispose()
|
||||||
|
Loading…
Reference in New Issue
Block a user