X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Fmenu%2Fdraw.qc;h=df93daa6e0bcd3cacaf8fbf57d3ffdbdb0d5ba35;hp=1f223f281affc2bc9ba5a42e90c1b3b3160f8981;hb=04ab0ff7c3c5fcfe9780eadccfd5abd03d25b181;hpb=87d4a81433ca7dbd761782f9b4b235976c7cdae5 diff --git a/qcsrc/menu/draw.qc b/qcsrc/menu/draw.qc index 1f223f281..df93daa6e 100644 --- a/qcsrc/menu/draw.qc +++ b/qcsrc/menu/draw.qc @@ -16,11 +16,21 @@ void draw_drawMousePointer(vector where) void draw_reset(float cw, float ch, float ox, float oy) { - drawfont = FONT_USER+0; draw_shift = '1 0 0' * ox + '0 1 0' * oy; draw_scale = '1 0 0' * cw + '0 1 0' * ch; draw_alpha = 1; draw_fontscale = '1 1 0'; + draw_endBoldFont(); +} + +void draw_beginBoldFont() +{ + drawfont = FONT_USER+3; +} + +void draw_endBoldFont() +{ + drawfont = FONT_USER+0; } vector globalToBox(vector v, vector theOrigin, vector theScale) @@ -266,8 +276,10 @@ void draw_BorderPicture(vector theOrigin, string pic, vector theSize, vector the } void draw_Text(vector theOrigin, string theText, vector theSize, vector theColor, float theAlpha, float ICanHasKallerz) { - if(theSize_x <= 0 || theSize_y <= 0) - error("Drawing zero size text?\n"); + if(theSize_x <= 0 || theSize_y <= 0) { + dprint("Drawing zero size text?\n"); + return; + } //float wi; //wi = draw_TextWidth(theText, ICanHasKallerz, theSize);