mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-11-02 22:34:01 +08:00
text/v2: rename LineSpaceInPixels -> LineSpace for consistency
Updates #2454
This commit is contained in:
@@ -93,7 +93,7 @@ func (g *Game) Draw(screen *ebiten.Image) {
|
||||
|
||||
// Use bitmapfont.Face instead of ebitenutil.DebugPrint, since some key names might not be printed with DebugPrint.
|
||||
textOp := &text.DrawOptions{}
|
||||
textOp.LineSpacingInPixels = fontFace.Metrics().HLineGap + fontFace.Metrics().HAscent + fontFace.Metrics().HDescent
|
||||
textOp.LineSpacing = fontFace.Metrics().HLineGap + fontFace.Metrics().HAscent + fontFace.Metrics().HDescent
|
||||
text.Draw(screen, strings.Join(keyStrs, ", ")+"\n"+strings.Join(keyNames, ", "), fontFace, textOp)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user