X-Git-Url: http://de.git.xonotic.org/?p=xonotic%2Fxonotic-data.pk3dir.git;a=blobdiff_plain;f=qcsrc%2Flib%2Fdraw.qh;h=2bf480a8782aed99c16167731c5f38efd1300fcd;hp=c8d9ae8de9b4dedee783b3ac3d4f0e531cef9286;hb=1b0decb9afb829407eae763b3053a122e2ae3de6;hpb=692cb758fe8f25fa078bfd5885333ee031885600 diff --git a/qcsrc/lib/draw.qh b/qcsrc/lib/draw.qh index c8d9ae8de..2bf480a87 100644 --- a/qcsrc/lib/draw.qh +++ b/qcsrc/lib/draw.qh @@ -5,7 +5,7 @@ #include "i18n.qh" #include "vector.qh" - #include + float vid_conwidth; void Draw_CylindricLine(vector from, vector to, float thickness, string texture, float aspect, float shift, vector rgb, float theAlpha, float drawflag, vector vieworg) { @@ -46,7 +46,7 @@ { if (theBorderSize.x < 0 && theBorderSize.y < 0) // draw whole image as it is { - drawpic(theOrigin, pic, theSize, theColor, theAlpha, 0); + drawpic_builtin(theOrigin, pic, theSize, theColor, theAlpha, 0); return; } if (theBorderSize.x == 0 && theBorderSize.y == 0) // no border @@ -117,16 +117,18 @@ } } + ERASEABLE void drawstringright(vector position, string text, vector theScale, vector rgb, float theAlpha, int flag) { position.x -= 2 / 3 * strlen(text) * theScale.x; - drawstring(position, text, theScale, rgb, theAlpha, flag); + drawstring_builtin(position, text, theScale, rgb, theAlpha, flag); } + ERASEABLE void drawstringcenter(vector position, string text, vector theScale, vector rgb, float theAlpha, int flag) { position.x = 0.5 * (vid_conwidth - 0.6025 * strlen(text) * theScale.x); - drawstring(position, text, theScale, rgb, theAlpha, flag); + drawstring_builtin(position, text, theScale, rgb, theAlpha, flag); } #endif