mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-09 01:56:47 -05:00
font: rename GetSize, and GetFrameIndex -> Size, FrameIndex
This commit is contained in:
parent
9f47ed4b35
commit
4243a1f6b1
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user