mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-24 18:58:54 +01:00
graphics: Add comments
This commit is contained in:
parent
78a58fd1ae
commit
692f36f664
@ -309,6 +309,7 @@ func ScreenOffset() (float64, float64) {
|
||||
if u.width == u.windowWidth {
|
||||
return 0, 0
|
||||
}
|
||||
// The window width can be bigger than the game screen width (#444).
|
||||
return (float64(u.windowWidth)*u.actualScreenScale() - float64(u.width)*u.actualScreenScale()) / 2, 0
|
||||
}
|
||||
ox := 0.0
|
||||
|
Loading…
Reference in New Issue
Block a user