mirror of
https://github.com/nzp-team/fteqw.git
synced 2024-11-26 05:41:52 +00:00
hopefully this fixes q2 sbar with viewsize somewhat
git-svn-id: https://svn.code.sf.net/p/fteqw/code/trunk@899 fc73d0e0-1445-4013-8a0c-d673dee63da5
This commit is contained in:
parent
7af6a2b9e7
commit
c324d0a3b8
1 changed files with 8 additions and 8 deletions
|
@ -367,8 +367,8 @@ void Sbar_ExecuteLayoutString (char *s)
|
|||
if (!s[0])
|
||||
return;
|
||||
|
||||
x = 0;
|
||||
y = 0;
|
||||
x = sbar_rect.x;
|
||||
y = sbar_rect.y;
|
||||
width = 3;
|
||||
|
||||
while (s)
|
||||
|
@ -377,38 +377,38 @@ void Sbar_ExecuteLayoutString (char *s)
|
|||
if (!strcmp(com_token, "xl"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
x = atoi(com_token);
|
||||
x = sbar_rect.x + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(com_token, "xr"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
x = sbar_rect.width + atoi(com_token);
|
||||
x = sbar_rect.x + sbar_rect.width + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(com_token, "xv"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
x = sbar_rect.width/2 - 160 + atoi(com_token);
|
||||
x = sbar_rect.x + sbar_rect.width/2 - 160 + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!strcmp(com_token, "yt"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
y = atoi(com_token);
|
||||
y = sbar_rect.y + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(com_token, "yb"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
y = sbar_rect.height + atoi(com_token);
|
||||
y = sbar_rect.y + sbar_rect.height + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
if (!strcmp(com_token, "yv"))
|
||||
{
|
||||
s = COM_Parse (s);
|
||||
y = sbar_rect.height/2 - 120 + atoi(com_token);
|
||||
y = sbar_rect.y + sbar_rect.height/2 - 120 + atoi(com_token);
|
||||
continue;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue