mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-01-18 23:11:38 +00:00
[ui] Propagate motion modifications for views
With this, the status bar now stays in the correct location as the window is resized. Rather nice that it was just a simple omission.
This commit is contained in:
parent
81e23b2e52
commit
036afba23d
2 changed files with 2 additions and 3 deletions
|
@ -189,9 +189,10 @@ View_UpdateHierarchy (view_t view)
|
|||
if (cont[i].resize_y) {
|
||||
len[i].y += dy;
|
||||
}
|
||||
modified[i] |= 2;
|
||||
modified[i] |= 2; // propogate resize modifications
|
||||
}
|
||||
if (modified[i] || modified[par]) {
|
||||
modified[i] |= 1; // propogate motion modifications
|
||||
switch (cont[i].gravity) {
|
||||
case grav_center:
|
||||
rel[i].x = pos[i].x + (len[par].x - len[i].x) / 2;
|
||||
|
|
|
@ -1521,8 +1521,6 @@ init_sbar_views (void)
|
|||
sbar_tile[0] = sbar_view ( 0, 0, 0, 48, grav_southwest, sbar_main);
|
||||
sbar_tile[1] = sbar_view ( 0, 0, 0, 48, grav_southeast, sbar_main);
|
||||
|
||||
View_SetResize (sbar_main, 1, 1);
|
||||
|
||||
for (int i = 0; i < 4; i++) {
|
||||
sbar_view (i * 8, 0, 8, 16, grav_northwest, sbar_sigils);
|
||||
|
||||
|
|
Loading…
Reference in a new issue