mirror of
https://github.com/ZDoom/gzdoom.git
synced 2024-11-10 23:01:50 +00:00
SBARINFO patch:
- Fixed: SBarInfo's string drawing sometimes used the wrong variable. SVN r1594 (trunk)
This commit is contained in:
parent
2e87ebff22
commit
b7dab65754
3 changed files with 82 additions and 82 deletions
|
@ -1521,7 +1521,7 @@ void DSBarInfo::DrawString(const char* str, SBarInfoCoordinate x, SBarInfoCoordi
|
|||
{
|
||||
if(*str == ' ')
|
||||
{
|
||||
x += drawingFont->GetSpaceWidth();
|
||||
ax += drawingFont->GetSpaceWidth();
|
||||
str++;
|
||||
continue;
|
||||
}
|
||||
|
@ -1537,7 +1537,7 @@ void DSBarInfo::DrawString(const char* str, SBarInfoCoordinate x, SBarInfoCoordi
|
|||
continue;
|
||||
}
|
||||
if(script->spacingCharacter == '\0') //If we are monospaced lets use the offset
|
||||
x += (character->LeftOffset+1); //ignore x offsets since we adapt to character size
|
||||
ax += (character->LeftOffset+1); //ignore x offsets since we adapt to character size
|
||||
|
||||
int rx, ry, rw, rh;
|
||||
rx = ax + xOffset;
|
||||
|
|
Loading…
Reference in a new issue