From 4243a1f6b1f4bbc8358cf5d0410371fe4a0e4720 Mon Sep 17 00:00:00 2001 From: "M. Sz" Date: Wed, 17 Feb 2021 08:38:41 +0100 Subject: [PATCH] font: rename GetSize, and GetFrameIndex -> Size, FrameIndex --- d2common/d2fileformats/d2font/font.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/d2common/d2fileformats/d2font/font.go b/d2common/d2fileformats/d2font/font.go index e916cde1..fd952b46 100644 --- a/d2common/d2fileformats/d2font/font.go +++ b/d2common/d2fileformats/d2font/font.go @@ -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 }