diff options
author | Simon Howard | 2011-04-04 20:07:07 +0000 |
---|---|---|
committer | Simon Howard | 2011-04-04 20:07:07 +0000 |
commit | 9f3f6683d929d118b18e21b06a0b729586569e1a (patch) | |
tree | 1a30dd5d65b9b371eb7beb66273ba134f2a38319 /textscreen/txt_window.c | |
parent | f596cfcd76c8c03c41c0691561c9b3c9c4419393 (diff) | |
download | chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.gz chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.tar.bz2 chocolate-doom-9f3f6683d929d118b18e21b06a0b729586569e1a.zip |
Change the background color when hovering over widgets.
Subversion-branch: /trunk/chocolate-doom
Subversion-revision: 2320
Diffstat (limited to 'textscreen/txt_window.c')
-rw-r--r-- | textscreen/txt_window.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/textscreen/txt_window.c b/textscreen/txt_window.c index 46e71d3a..7ba11778 100644 --- a/textscreen/txt_window.c +++ b/textscreen/txt_window.c @@ -40,6 +40,10 @@ void TXT_SetWindowAction(txt_window_t *window, } window->actions[position] = action; + + // Maintain parent pointer. + + action->widget.parent = &window->table.widget; } txt_window_t *TXT_NewWindow(char *title) @@ -158,7 +162,7 @@ static void LayoutActionArea(txt_window_t *window) TXT_CalcWidgetSize(widget); - widget->x = window->window_x + 2; + widget->x = window->window_x + 1; widget->y = window->window_y + window->window_h - widget->h - 1; // Adjust available space: @@ -175,7 +179,7 @@ static void LayoutActionArea(txt_window_t *window) TXT_CalcWidgetSize(widget); - widget->x = window->window_x + window->window_w - 2 - widget->w; + widget->x = window->window_x + window->window_w - 1 - widget->w; widget->y = window->window_y + window->window_h - widget->h - 1; // Adjust available space: |