menu.c: center play button on screen
This commit is contained in:
parent
391c8958b1
commit
c4a24800b8
|
@ -27,6 +27,8 @@ int menu(void)
|
|||
play.on_pressed = on_pressed;
|
||||
play.arg = &start;
|
||||
play.w = 140;
|
||||
play.common.hcentered = true;
|
||||
play.common.vcentered = true;
|
||||
play.label.text = "Play";
|
||||
|
||||
{
|
||||
|
@ -44,8 +46,6 @@ int menu(void)
|
|||
peripheral_update(&p);
|
||||
camera_update(&cam, &p);
|
||||
|
||||
play.common.x = screen_w / 2 - play.w / 2;
|
||||
play.common.y = screen_h / 2 - 20;
|
||||
play.label.common.x = play.w / 2 - 20;
|
||||
play.label.common.y = 4;
|
||||
|
||||
|
|
Loading…
Reference in New Issue