DEADSOFTWARE

fancy pbar width and rendering fixes (don't be so smart, ketmar!)
authorKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 29 Dec 2017 00:36:12 +0000 (02:36 +0200)
committerKetmar Dark <ketmar@ketmar.no-ip.org>
Fri, 29 Dec 2017 00:36:53 +0000 (02:36 +0200)
src/game/g_game.pas

index 7e20f0962af8e18c463e556ec3a9443ba9d9a668..9553cbecfc2a5f058315912aea9392e824367614 100644 (file)
@@ -2579,7 +2579,8 @@ procedure DrawLoadingStat();
       g_Texture_Get('UI_GFX_PBAR_MARKER', idm);
       g_Texture_GetSize('UI_GFX_PBAR_MARKER', wm, hm);
 
-      rectW := gScreenWidth-64;
+      //rectW := gScreenWidth-360;
+      rectW := trunc(624.0*gScreenWidth/1024.0);
       rectH := hl;
 
       x0 := (gScreenWidth-rectW) div 2;
@@ -2607,7 +2608,7 @@ procedure DrawLoadingStat();
       if (wdt > rectW-wl-wr) then wdt := rectW-wr-wr;
       if (wdt > 0) then
       begin
-        my := y0+(rectH-wm) div 2;
+        my := y0; // don't be so smart, ketmar: +(rectH-wm) div 2;
         glScissor(x0+wl, gScreenHeight-my-rectH, wdt, hm);
         f := x0+wl;
         while (wdt > 0) do
@@ -2619,13 +2620,6 @@ procedure DrawLoadingStat();
       end;
 
       glScissor(0, 0, gScreenWidth, gScreenHeight);
-
-{
-procedure e_DrawSize(ID: DWORD; X, Y: Integer; Alpha: Byte; AlphaChannel: Boolean;
-                     Blending: Boolean; Width, Height: Word; Mirror: TMirrorType = TMirrorType.None);
-        if g_Texture_Get('MENU_BACKGROUND', ID) then e_DrawSize(ID, 0, 0, 0, False, False, gScreenWidth, gScreenHeight)
-        else e_Clear(GL_COLOR_BUFFER_BIT, 0, 0, 0);
-}
     end
     else
     begin