summaryrefslogtreecommitdiff
path: root/src/gui/window.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui/window.c')
-rw-r--r--src/gui/window.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/window.c b/src/gui/window.c
index fd53920..681c3b7 100644
--- a/src/gui/window.c
+++ b/src/gui/window.c
@@ -39,14 +39,14 @@ void window_draw( void *obj, graphics_context_t *context )
if( ((widget_t *)widget)->x < 0 ) {
((widget_t *)widget)->x = 0;
}
- if( ((widget_t *)widget)->x > context->mode.x - ((widget_t *)widget)->w ) {
- ((widget_t *)widget)->x = context->mode.x - ((widget_t *)widget)->w;
+ if( ((widget_t *)widget)->x > context->mode->base.x - ((widget_t *)widget)->w ) {
+ ((widget_t *)widget)->x = context->mode->base.x - ((widget_t *)widget)->w;
}
if( ((widget_t *)widget)->y < 0 ) {
((widget_t *)widget)->y = 0;
}
- if( ((widget_t *)widget)->y > context->mode.y - ((widget_t *)widget)->h ) {
- ((widget_t *)widget)->y = context->mode.y - ((widget_t *)widget)->h;
+ if( ((widget_t *)widget)->y > context->mode->base.y - ((widget_t *)widget)->h ) {
+ ((widget_t *)widget)->y = context->mode->base.y - ((widget_t *)widget)->h;
}
composite_widget_draw( obj, context );