Skip to content

Commit

Permalink
PrintFromLine: should be using the converted dobule byte string
Browse files Browse the repository at this point in the history
  • Loading branch information
bradallred committed Dec 30, 2013
1 parent 8541ff2 commit 290709a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gemrb/core/Font.cpp
Expand Up @@ -94,10 +94,10 @@ void Font::PrintFromLine(int startrow, Region rgn, const unsigned char* string,
capital=1;
enablecap=true;
initials_rows = 1 + ((initials->maxHeight - 1) / maxHeight); // ceiling
currCap = string[0];
currCap = tmp[0];
if ((startrow > 0 && initials_rows > 0) || (len > 0 && isspace(currCap))) { // we need to look back to get the cap
while(isspace(currCap) && num_empty_rows < len){//we cant cap whiteSpace so keep looking
currCap = string[++num_empty_rows];
currCap = tmp[++num_empty_rows];
// WARNING: this assumes all preceeding whiteSpace is an empty line
}
last_initial_row = startrow - 1; // always the row before current since this cannot be the first row
Expand Down

0 comments on commit 290709a

Please sign in to comment.