]> de.git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cl_screen.c
qw support is 99% working
[xonotic/darkplaces.git] / cl_screen.c
index f4e11ba789094955c97ac2b01ba2371b8ddf62ae..5b5c622af97bcf9ad283706d9b5fc907e11ba9d9 100644 (file)
@@ -391,6 +391,27 @@ void SCR_DrawBrand (void)
        DrawQ_Pic (x, y, "gfx/brand", 0, 0, 1, 1, 1, 1, 0);
 }
 
+/*
+==============
+SCR_DrawDownload
+==============
+*/
+static void SCR_DrawDownload(void)
+{
+       int len;
+       float x, y;
+       float size = 8;
+       char temp[256];
+       if (!cls.qw_downloadname[0])
+               return;
+       dpsnprintf(temp, sizeof(temp), "Downloading %s ...  %3i%%\n", cls.qw_downloadname, cls.qw_downloadpercent);
+       len = strlen(temp);
+       x = (vid_conwidth.integer - len*size) / 2;
+       y = vid_conheight.integer - size;
+       DrawQ_Fill(0, y, vid_conwidth.integer, size, 0, 0, 0, 0.5, 0);
+       DrawQ_String(x, y, temp, len, size, size, 1, 1, 1, 1, 0);
+}
+
 //=============================================================================
 
 
@@ -1530,6 +1551,8 @@ void CL_UpdateScreen(void)
 
        SCR_DrawBrand();
 
+       SCR_DrawDownload();
+
        SCR_UpdateScreen();
 }