diff options
-rw-r--r-- | src/tk/box.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/tk/box.c b/src/tk/box.c index 2afe0d1..da0ef5d 100644 --- a/src/tk/box.c +++ b/src/tk/box.c @@ -92,8 +92,8 @@ _mftk_box_render(struct mftk_widget *w, SDL_Renderer *renderer, int x, int y) struct mftk_box *b = (struct mftk_box *) w; SDL_Rect rect; - rect.x = b->child_x - b->padding; - rect.y = b->child_y - b->padding; + rect.x = x + b->child_x - b->padding; + rect.y = y + b->child_y - b->padding; rect.w = w->w; rect.h = w->h; if (SDL_SetRenderDrawColor(renderer, |