X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin2_src%2FWM%2Fvideo_text.c;h=87a72f035490f943c80ee18710555cacfac191fa;hb=2b28991acfe9e9014eb14dd47def8e31e4c2b7e4;hp=897c4116dc96db1ba5684255bf01f25e67533c7d;hpb=92517b68b7582251f69db7e062d5e5a4c773791f;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin2_src/WM/video_text.c b/Usermode/Applications/axwin2_src/WM/video_text.c index 897c4116..87a72f03 100644 --- a/Usermode/Applications/axwin2_src/WM/video_text.c +++ b/Usermode/Applications/axwin2_src/WM/video_text.c @@ -62,6 +62,9 @@ int Video_DrawText(short X, short Y, short W, short H, tFont *Font, uint32_t Col 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; @@ -80,8 +83,7 @@ int Video_DrawText(short X, short Y, short W, short H, tFont *Font, uint32_t Col // 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 )