mirror of
https://github.com/OpenDiablo2/OpenDiablo2
synced 2025-02-03 07:07:25 -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
|
||||
}
|
||||
|
||||
// GetSize returns glyph's size
|
||||
func (fg *fontGlyph) GetSize() (w, h int) {
|
||||
// Size returns glyph's size
|
||||
func (fg *fontGlyph) Size() (w, h int) {
|
||||
return fg.width, fg.height
|
||||
}
|
||||
|
||||
// GetFrameIndex returns glyph's frame
|
||||
func (fg *fontGlyph) GetFrameIndex() int {
|
||||
// FrameIndex returns glyph's frame
|
||||
func (fg *fontGlyph) FrameIndex() int {
|
||||
return fg.frame
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user