diff options
author | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 23:01:07 +0100 |
---|---|---|
committer | Thomas Martitz <kugel@rockbox.org> | 2014-01-07 23:01:07 +0100 |
commit | e766e6d9f342080179d6f1c482a8f49908bf3c34 (patch) | |
tree | a42723e7df4f923dee7c20e8aba332c932e15914 /apps/plugins/reversi | |
parent | 10a2e6738d24c31aa26822499df366c06dc2e88d (diff) | |
download | rockbox-e766e6d9f342080179d6f1c482a8f49908bf3c34.tar.gz rockbox-e766e6d9f342080179d6f1c482a8f49908bf3c34.zip |
reversi: Update viewport initialization to new member fields.
Change-Id: I37f77e4ad5abf04006dd6ee2a82de115ef204e3a
Diffstat (limited to 'apps/plugins/reversi')
-rw-r--r-- | apps/plugins/reversi/reversi-gui.c | 21 |
1 files changed, 9 insertions, 12 deletions
diff --git a/apps/plugins/reversi/reversi-gui.c b/apps/plugins/reversi/reversi-gui.c index 39a7d2d91c..b0869e43eb 100644 --- a/apps/plugins/reversi/reversi-gui.c +++ b/apps/plugins/reversi/reversi-gui.c | |||
@@ -180,12 +180,12 @@ static bool game_finished; | |||
180 | 180 | ||
181 | /* This is the button initialization/definition. The first element is the | 181 | /* This is the button initialization/definition. The first element is the |
182 | * Viewport. This is defined in lcd.h, but the elements are: | 182 | * Viewport. This is defined in lcd.h, but the elements are: |
183 | * int x - X location of button/viewport | 183 | * int x - X location of button/viewport |
184 | * int y - Y location of button/viewport | 184 | * int y - Y location of button/viewport |
185 | * int width - Width of button/viewport | 185 | * int width - Width of button/viewport |
186 | * int height - Height of button/viewport | 186 | * int height - Height of button/viewport |
187 | * int font - Font to be used on button/viewport | 187 | * int font - Font to be used on button/viewport |
188 | * int drawmode- Modes defined in lcd.h | 188 | * int drawmode - Modes defined in lcd.h |
189 | * unsigned fg_pattern - foreground color | 189 | * unsigned fg_pattern - foreground color |
190 | * unsigned bg_pattern - backbround color | 190 | * unsigned bg_pattern - backbround color |
191 | * | 191 | * |
@@ -198,16 +198,13 @@ static bool game_finished; | |||
198 | */ | 198 | */ |
199 | struct touchbutton reversi_buttons[TOUCHBUTTON_COUNT] = | 199 | struct touchbutton reversi_buttons[TOUCHBUTTON_COUNT] = |
200 | { | 200 | { |
201 | { {B_MENU_X, B_MENU_Y, B_MENU_W, B_MENU_H, 0, FONT_UI, | 201 | { {B_MENU_X, B_MENU_Y, B_MENU_W, B_MENU_H, 0, FONT_UI, DRMODE_SOLID, 0, 0xFFFF}, |
202 | -1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0}, | ||
203 | false, REVERSI_BUTTON_MENU, false, "Menu", NULL }, | 202 | false, REVERSI_BUTTON_MENU, false, "Menu", NULL }, |
204 | 203 | ||
205 | { {B_QUIT_X, B_QUIT_Y, B_QUIT_W, B_QUIT_H, 0, FONT_UI, | 204 | { {B_QUIT_X, B_QUIT_Y, B_QUIT_W, B_QUIT_H, 0, FONT_UI, DRMODE_SOLID, 0, 0xFFFF}, |
206 | -1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0}, | ||
207 | false, REVERSI_BUTTON_QUIT, false, "Quit", NULL }, | 205 | false, REVERSI_BUTTON_QUIT, false, "Quit", NULL }, |
208 | 206 | ||
209 | { {0, 0, XOFS+BOARD_WIDTH, YOFS+BOARD_HEIGHT, 0, 0, | 207 | { {0, 0, XOFS+BOARD_WIDTH, YOFS+BOARD_HEIGHT, 0, 0, DRMODE_SOLID, 0, 0xFFFF}, |
210 | -1, STYLE_DEFAULT, 0, 0xFFFF, 0, 0, 0}, | ||
211 | false, REVERSI_BUTTON_MAKE_MOVE, true, NULL, NULL } | 208 | false, REVERSI_BUTTON_MAKE_MOVE, true, NULL, NULL } |
212 | }; | 209 | }; |
213 | #endif | 210 | #endif |