1
1
mirror of https://github.com/OpenDiablo2/OpenDiablo2 synced 2024-06-20 06:05:23 +00:00

font: rename GetSize, and GetFrameIndex -> Size, FrameIndex

This commit is contained in:
M. Sz 2021-02-17 08:38:41 +01:00
parent 9f47ed4b35
commit 4243a1f6b1

View File

@ -35,13 +35,13 @@ func (fg *fontGlyph) setHeight(h int) {
fg.height = h fg.height = h
} }
// GetSize returns glyph's size // Size returns glyph's size
func (fg *fontGlyph) GetSize() (w, h int) { func (fg *fontGlyph) Size() (w, h int) {
return fg.width, fg.height return fg.width, fg.height
} }
// GetFrameIndex returns glyph's frame // FrameIndex returns glyph's frame
func (fg *fontGlyph) GetFrameIndex() int { func (fg *fontGlyph) FrameIndex() int {
return fg.frame return fg.frame
} }