int xOfs = 0;
tGlyph *glyph;
uint32_t ch = 0;
+
+ _SysDebug("Video_DrawText: (X=%i,Y=%i,W=%i,H=%i,Font=%p,Color=%08x,Text='%s')",
+ X, Y, W, H, Font, Color, Text);
// Check the bounds
if(W < 0 || X < 0 || X >= giScreenWidth) return 0;
// Find (or load) the glyph
glyph = _GetGlyph(Font, ch);
- if( glyph )
- continue ; // If not found, just don't render it
+ if( !glyph ) continue ; // If not found, just don't render it
// End render if it will overflow the perscribed range
if( xOfs + glyph->TrueWidth > W )