]> git.mxchange.org Git - quix0rs-blobwars.git/commit
Remove font size guessing hack.
authorGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 21:27:18 +0000 (23:27 +0200)
committerGuus Sliepen <guus@debian.org>
Sun, 9 Aug 2015 21:27:18 +0000 (23:27 +0200)
commit150bfd36d71cafa0213f083a333fd686d844966f
tree81a3a61a1eec89f4f6316a1f168e58958e549016
parent78bc8aa0ecb02e20a4dc1e181a01cd39b846ef2f
Remove font size guessing hack.

According to the documentation, the point size given to TTF_OpenFont()
is always assuming 72 DPI, so there is no need to repeatedly trying to
load the font and checking the font metrics until we hit upon a point
size that matches the pixel size we want. Instead we can just give the
corresponding point size directly.
src/CGraphics.cpp
src/init.cpp