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

font table format: lintfix

This commit is contained in:
M. Sz 2021-02-17 10:37:04 +01:00
parent 66ac5ff657
commit 6fdbaa07bd

View File

@ -32,6 +32,7 @@ type FontGlyph struct {
height int
}
// SetSize sets glyph's size to w, h
func (fg *FontGlyph) SetSize(w, h int) {
fg.width, fg.height = w, h
}
@ -41,6 +42,7 @@ func (fg *FontGlyph) Size() (w, h int) {
return fg.width, fg.height
}
// SetFrameIndex sets frame index to idx
func (fg *FontGlyph) SetFrameIndex(idx int) {
fg.frame = idx
}