[quake3-commits] [ioquake/ioq3] 08ddb9: Fix saving/loading glyph 255 in RegisterFont
Zack Middleton
zturtleman at gmail.com
Mon Dec 1 23:26:44 EST 2014
Branch: refs/heads/master
Home: https://github.com/ioquake/ioq3
Commit: 08ddb99732444a33bc5d5616116f4ee49f57de5f
https://github.com/ioquake/ioq3/commit/08ddb99732444a33bc5d5616116f4ee49f57de5f
Author: Zack Middleton <zturtleman at gmail.com>
Date: 2014-12-01 (Mon, 01 Dec 2014)
Changed paths:
M code/renderercommon/tr_font.c
Log Message:
-----------
Fix saving/loading glyph 255 in RegisterFont
The glyph for character 255 (lower case y with two dots above it) was
rendered, but it's glyph information was not stored in fontInfo_t and
not saved into .dat file (including the ones in Team Arena).
Attempting to load it from existing .dat font files is fine because
shader name is "" and gets 0 handle. The handle was already 0 anyway.
Commit: b21a59af8c1cc58947f8b5ee29e55b14b8321238
https://github.com/ioquake/ioq3/commit/b21a59af8c1cc58947f8b5ee29e55b14b8321238
Author: Zack Middleton <zturtleman at gmail.com>
Date: 2014-12-01 (Mon, 01 Dec 2014)
Changed paths:
M code/cgame/cg_draw.c
M code/cgame/cg_newdraw.c
M code/ui/ui_main.c
Log Message:
-----------
Fix negative glyph index in Team Arena text functions
Team Arena's text functions cast signed char values to int and use as an array index.
This works fine for values 0 to 127, but not for -128 to -1 which are a negative array index.
Instead use "character & 255" like client and original Q3 ui/cgame string drawing code.
Compare: https://github.com/ioquake/ioq3/compare/8c7fedb1feb5...b21a59af8c1c
More information about the quake3-commits
mailing list