buf with scroll

This commit is contained in:
p.kosyh 2010-10-31 09:54:07 +00:00
parent a18e801e3e
commit 6faa91ad36

View file

@ -968,8 +968,8 @@ void box_update_scrollbar(int n)
if (!elup || !eldown)
return;
if (x1 == -1 || y1 == -1 || x2 == -1 || y2 == -1)
el_size(n, &w, &h);
// if (x1 == -1 || y1 == -1 || x2 == -1 || y2 == -1)
el_size(n, &w, &h);
if (x1 == -1)
x1 = el(n)->x + w + game_theme.pad;
@ -1001,7 +1001,7 @@ void box_update_scrollbar(int n)
elup->y = y1;
eldown->x = x2;
eldown->y = y2;
el_clear(elup->id);
el_clear(eldown->id);