mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-28 19:52:43 +01:00
parent
bc8e2fe6ac
commit
33da481d60
@ -311,10 +311,10 @@ func BoundString(face font.Face, text string) image.Rectangle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return image.Rect(
|
return image.Rect(
|
||||||
int(math.Floor(fixed26_6ToFloat64(bounds.Min.X))),
|
bounds.Min.X.Floor(),
|
||||||
int(math.Floor(fixed26_6ToFloat64(bounds.Min.Y))),
|
bounds.Min.Y.Floor(),
|
||||||
int(math.Ceil(fixed26_6ToFloat64(bounds.Max.X))),
|
bounds.Max.X.Ceil(),
|
||||||
int(math.Ceil(fixed26_6ToFloat64(bounds.Max.Y))),
|
bounds.Max.Y.Ceil(),
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user