From 6faa91ad362523b0259a45b2a8c7ee7086b8aa3f Mon Sep 17 00:00:00 2001
From: "p.kosyh"
Date: Sun, 31 Oct 2010 09:54:07 +0000
Subject: [PATCH] buf with scroll
---
src/sdl-instead/game.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/sdl-instead/game.c b/src/sdl-instead/game.c
index 7884fb3..e342e3e 100644
--- a/src/sdl-instead/game.c
+++ b/src/sdl-instead/game.c
@@ -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);