reversi: Update viewport initialization to new member fields.

Change-Id: I37f77e4ad5abf04006dd6ee2a82de115ef204e3a
This commit is contained in:
Thomas Martitz 2014-01-07 23:01:07 +01:00
parent 10a2e6738d
commit e766e6d9f3

View file

@ -185,7 +185,7 @@ static bool game_finished;
* int width - Width of button/viewport
* int height - Height of button/viewport
* int font - Font to be used on button/viewport
* int drawmode- Modes defined in lcd.h
* int drawmode - Modes defined in lcd.h
* unsigned fg_pattern - foreground color
* unsigned bg_pattern - backbround color
*
@ -198,16 +198,13 @@ static bool game_finished;
*/
struct touchbutton reversi_buttons[TOUCHBUTTON_COUNT] =
{
{ {B_MENU_X, B_MENU_Y, B_MENU_W, B_MENU_H, 0, FONT_UI,
-1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0},
{ {B_MENU_X, B_MENU_Y, B_MENU_W, B_MENU_H, 0, FONT_UI, DRMODE_SOLID, 0, 0xFFFF},
false, REVERSI_BUTTON_MENU, false, "Menu", NULL },
{ {B_QUIT_X, B_QUIT_Y, B_QUIT_W, B_QUIT_H, 0, FONT_UI,
-1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0},
{ {B_QUIT_X, B_QUIT_Y, B_QUIT_W, B_QUIT_H, 0, FONT_UI, DRMODE_SOLID, 0, 0xFFFF},
false, REVERSI_BUTTON_QUIT, false, "Quit", NULL },
{ {0, 0, XOFS+BOARD_WIDTH, YOFS+BOARD_HEIGHT, 0, 0,
-1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0},
{ {0, 0, XOFS+BOARD_WIDTH, YOFS+BOARD_HEIGHT, 0, 0, DRMODE_SOLID, 0, 0xFFFF},
false, REVERSI_BUTTON_MAKE_MOVE, true, NULL, NULL }
};
#endif