Mercurial > molko
comparison libmlk-rpg/mlk/rpg/battle-bar-default.c @ 491:734b598534c4
ui: frame -> mlk_frame
author | David Demelier <markand@malikania.fr> |
---|---|
date | Tue, 28 Feb 2023 13:16:47 +0100 |
parents | f2d3c5a97884 |
children | c7b18475f640 |
comparison
equal
deleted
inserted
replaced
490:d4e50da7e5c5 | 491:734b598534c4 |
---|---|
303 } | 303 } |
304 | 304 |
305 static void | 305 static void |
306 draw_status(const struct battle_bar_default *bar, const struct battle *bt, const struct geo *geo) | 306 draw_status(const struct battle_bar_default *bar, const struct battle *bt, const struct geo *geo) |
307 { | 307 { |
308 frame_draw(&(const struct frame) { | 308 mlk_frame_draw(&(const struct mlk_frame) { |
309 .x = geo->x, | 309 .x = geo->x, |
310 .y = geo->y, | 310 .y = geo->y, |
311 .w = geo->w, | 311 .w = geo->w, |
312 .h = geo->h | 312 .h = geo->h |
313 }); | 313 }); |
362 by = geo->y + theme->padding; | 362 by = geo->y + theme->padding; |
363 bw = geo->w - theme->padding * 2; | 363 bw = geo->w - theme->padding * 2; |
364 bh = geo->h - theme->padding * 2; | 364 bh = geo->h - theme->padding * 2; |
365 | 365 |
366 /* Draw menu frame. */ | 366 /* Draw menu frame. */ |
367 frame_draw(&(const struct frame) { | 367 mlk_frame_draw(&(const struct mlk_frame) { |
368 .x = geo->x, | 368 .x = geo->x, |
369 .y = geo->y, | 369 .y = geo->y, |
370 .w = geo->w, | 370 .w = geo->w, |
371 .h = geo->h | 371 .h = geo->h |
372 }); | 372 }); |