summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 972b9c8)
raw | patch | inline | side by side (parent: 972b9c8)
author | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 29 Dec 2017 00:36:12 +0000 (02:36 +0200) | ||
committer | Ketmar Dark <ketmar@ketmar.no-ip.org> | |
Fri, 29 Dec 2017 00:36:53 +0000 (02:36 +0200) |
src/game/g_game.pas | patch | blob | history |
diff --git a/src/game/g_game.pas b/src/game/g_game.pas
index 7e20f0962af8e18c463e556ec3a9443ba9d9a668..9553cbecfc2a5f058315912aea9392e824367614 100644 (file)
--- a/src/game/g_game.pas
+++ b/src/game/g_game.pas
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;
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
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