summaryrefslogtreecommitdiff
path: root/CONTRIBUTING.md
diff options
context:
space:
mode:
authorPeter Nelson <peter1138@openttd.org>2021-05-01 08:54:05 +0100
committerPeterN <peter@fuzzle.org>2021-05-01 10:41:39 +0100
commit9c6c0a0966f79996dfb7b5c7097c7d6c04a8d35c (patch)
tree55015f04f1f356f8fdfa60574c73ce5a2908f7c8 /CONTRIBUTING.md
parentce55cd0ce703acb3a731f7d2d783fb3462fab6c8 (diff)
downloadopenttd-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 'CONTRIBUTING.md')
0 files changed, 0 insertions, 0 deletions