diff options
author | P. J. McDermott <pj@pehjota.net> | 2021-08-07 13:53:38 (EDT) |
---|---|---|
committer | P. J. McDermott <pj@pehjota.net> | 2021-08-07 13:53:38 (EDT) |
commit | bae0f7abb36e01cbb09721eb86c001bf0bc32202 (patch) | |
tree | b34b7b422270d9415a0a48102de4a1e198255b41 /src | |
parent | 7dd13e36121da49b80a02297922f02881c4200a6 (diff) | |
download | mazefight-bae0f7abb36e01cbb09721eb86c001bf0bc32202.zip mazefight-bae0f7abb36e01cbb09721eb86c001bf0bc32202.tar.gz mazefight-bae0f7abb36e01cbb09721eb86c001bf0bc32202.tar.bz2 |
tk: Fix box positioning
Diffstat (limited to 'src')
-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, |