diff options
author | Peter Nelson <peter1138@openttd.org> | 2021-05-01 08:54:05 +0100 |
---|---|---|
committer | PeterN <peter@fuzzle.org> | 2021-05-01 10:41:39 +0100 |
commit | 9c6c0a0966f79996dfb7b5c7097c7d6c04a8d35c (patch) | |
tree | 55015f04f1f356f8fdfa60574c73ce5a2908f7c8 /README.md | |
parent | ce55cd0ce703acb3a731f7d2d783fb3462fab6c8 (diff) | |
download | openttd-9c6c0a0966f79996dfb7b5c7097c7d6c04a8d35c.tar.xz |
Codechange: Scale sprite font height once on init instead of every call to GetHeight().
Scaling is not expensive, but it does not change either, and this avoids the need for a virtual method call. This cascades back to all GetCharacterHeight(FS_xxx) and FONT_HEIGHT_xxx calls.
Diffstat (limited to 'README.md')
0 files changed, 0 insertions, 0 deletions