mirror of
https://github.com/ReactionQuake3/reaction.git
synced 2024-11-22 04:11:45 +00:00
IOQ3 commit 2227
This commit is contained in:
parent
3ca2802ac3
commit
bddb1f5b0e
1 changed files with 5 additions and 11 deletions
|
@ -233,17 +233,11 @@ static glyphInfo_t *RE_ConstructGlyphInfo(unsigned char *imageOut, int *xOut, in
|
|||
|
||||
// we need to make sure we fit
|
||||
if (*xOut + scaled_width + 1 >= 255) {
|
||||
if (*yOut + *maxHeight + 1 >= 255) {
|
||||
*yOut = -1;
|
||||
*xOut = -1;
|
||||
ri.Free(bitmap->buffer);
|
||||
ri.Free(bitmap);
|
||||
return &glyph;
|
||||
} else {
|
||||
*xOut = 0;
|
||||
*yOut += *maxHeight + 1;
|
||||
}
|
||||
} else if (*yOut + *maxHeight + 1 >= 255) {
|
||||
*xOut = 0;
|
||||
*yOut += *maxHeight + 1;
|
||||
}
|
||||
|
||||
if (*yOut + *maxHeight + 1 >= 255) {
|
||||
*yOut = -1;
|
||||
*xOut = -1;
|
||||
ri.Free(bitmap->buffer);
|
||||
|
|
Loading…
Reference in a new issue