mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-11-10 04:57:26 +01:00
examples/text: bug fix: go-vet error
This commit is contained in:
parent
911cf0c48c
commit
7791ae3029
@ -108,7 +108,7 @@ func boundString(face font.Face, str string) fixed.Rectangle26_6 {
|
|||||||
m := face.Metrics()
|
m := face.Metrics()
|
||||||
minY := -m.Ascent
|
minY := -m.Ascent
|
||||||
maxY := fixed.Int26_6(len(lines)-1)*m.Height + m.Descent
|
maxY := fixed.Int26_6(len(lines)-1)*m.Height + m.Descent
|
||||||
return fixed.Rectangle26_6{fixed.Point26_6{X: minX, Y: minY}, fixed.Point26_6{X: maxX, Y: maxY}}
|
return fixed.Rectangle26_6{Min: fixed.Point26_6{X: minX, Y: minY}, Max: fixed.Point26_6{X: maxX, Y: maxY}}
|
||||||
}
|
}
|
||||||
|
|
||||||
func fixed26_6ToFloat32(x fixed.Int26_6) float32 {
|
func fixed26_6ToFloat32(x fixed.Int26_6) float32 {
|
||||||
|
Loading…
Reference in New Issue
Block a user