Skip to content

Commit

Permalink
Fixed a minor type mismatch in FR_PrepareGDIFont. Do we even use/need…
Browse files Browse the repository at this point in the history
… these still?
  • Loading branch information
danij committed Nov 3, 2008
1 parent 1877c42 commit e47b1b2
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions doomsday/engine/portable/src/gl_font.c
Expand Up @@ -588,20 +588,22 @@ int FR_PrepareGDIFont(HFONT hfont)
// Print all the characters.
for(i = 0, x = 0, y = 0, maxh = 0; i < 256; ++i)
{
jfrchar_t *fc = font->chars + i;
byte ch[2];
jfrchar_t* fc = font->chars + i;
char ch[2];

ch[0] = i;
ch[1] = 0;
ch[1] = '\0';

if(x + fc->w + 1 >= bmpWidth)
{
x = 0;
y += maxh + 1;
maxh = 0;
}

if(i)
TextOut(hdc, x + 1, y + 1, ch, 1);

fc->x = x + 1;
fc->y = y + 1;
maxh = max(maxh, fc->h);
Expand Down

0 comments on commit e47b1b2

Please sign in to comment.