summaryrefslogtreecommitdiff
path: root/src/gui/window.c
diff options
context:
space:
mode:
authorAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 16:14:14 +0200
committerAndreas Baumann <mail@andreasbaumann.cc>2017-07-22 16:14:14 +0200
commit752ff17265f23d4fa9084368d2a90f66521a98e2 (patch)
tree2acad7fc117add49064f261cfbadcd341c7406b6 /src/gui/window.c
parent95292027625e905080f37f585402f49ec49bc97f (diff)
downloadabaos-752ff17265f23d4fa9084368d2a90f66521a98e2.tar.gz
abaos-752ff17265f23d4fa9084368d2a90f66521a98e2.tar.bz2
separated video driver in a virtual video driver and a specific
VGA video driver
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 1cb1fb1..132dd89 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->base.x - ((widget_t *)widget)->w ) {
- ((widget_t *)widget)->x = context->mode->base.x - ((widget_t *)widget)->w;
+ 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)->y < 0 ) {
((widget_t *)widget)->y = 0;
}
- 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;
+ if( ((widget_t *)widget)->y > context->mode->y - ((widget_t *)widget)->h ) {
+ ((widget_t *)widget)->y = context->mode->y - ((widget_t *)widget)->h;
}
composite_widget_draw( obj, context );