diff options
Diffstat (limited to 'src/widget/widget.c')
| -rw-r--r-- | src/widget/widget.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/widget/widget.c b/src/widget/widget.c index 0dcfb41..b72a463 100644 --- a/src/widget/widget.c +++ b/src/widget/widget.c @@ -32,6 +32,7 @@ void widgetGetLocation(widget_t * p, int *x, int *y) { if (x != NULL) *x = p->x; + if (y != NULL) *y = p->y; } @@ -46,6 +47,7 @@ void widgetGetSize(widget_t * p, int *w, int *h) { if (w != NULL) *w = p->w; + if (h != NULL) *h = p->h; } |