mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2025-02-17 01:11:45 +00:00
correct the math for calculating the position of the slider indicator
This commit is contained in:
parent
ec26083228
commit
0e0f3704c5
1 changed files with 1 additions and 2 deletions
|
@ -27,15 +27,14 @@
|
|||
{
|
||||
local integer pos, x, y;
|
||||
|
||||
pos = (index * ((dir ? ylen : xlen) - 24) / size) + 8;
|
||||
if (dir) {
|
||||
pos = index * ylen / size;
|
||||
Draw_Character (xabs, yabs, 1);
|
||||
for (y = 8; y < ylen - 8; y += 8)
|
||||
Draw_Character (xabs, yabs + y, 2);
|
||||
Draw_Character (xabs, yabs + y, 3);
|
||||
Draw_Character (xabs, yabs + pos, 131);
|
||||
} else {
|
||||
pos = index * xlen / size;
|
||||
Draw_Character (xabs, yabs, 128);
|
||||
for (x = 8; x < xlen - 8; x += 8)
|
||||
Draw_Character (xabs + x, yabs, 129);
|
||||
|
|
Loading…
Reference in a new issue