Changeset 1514 for branches/reyalp-flt/core/gui_reversi.c
- Timestamp:
- 12/30/11 04:07:44 (17 months ago)
- File:
-
- 1 edited
-
branches/reyalp-flt/core/gui_reversi.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/reyalp-flt/core/gui_reversi.c
r1513 r1514 205 205 uchar x, y; 206 206 207 draw_filled_rect(0, 0, screen_width-1, screen_height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR));207 draw_filled_rect(0, 0, camera_screen.width-1, camera_screen.height-1, MAKE_COLOR(SCREEN_COLOR, SCREEN_COLOR)); 208 208 for (y=0; y<8; ++y) { 209 209 for (x=0; x<8; ++x) { … … 229 229 InGame=0; 230 230 231 field_size = ( screen_height-2*FONT_HEIGHT-4)&0xFFF8;232 field_x = camera_ info.ts_button_border+FONT_WIDTH+8;233 field_y = ( screen_height-field_size)>>1;231 field_size = (camera_screen.height-2*FONT_HEIGHT-4)&0xFFF8; 232 field_x = camera_screen.ts_button_border+FONT_WIDTH+8; 233 field_y = (camera_screen.height-field_size)>>1; 234 234 cell_size = field_size >> 3; 235 235 … … 332 332 //------------------------------------------------------------------- 333 333 static void redrawstatus() { 334 int x=camera_ info.ts_button_border+field_size+FONT_WIDTH*2+23, y = 25;334 int x=camera_screen.ts_button_border+field_size+FONT_WIDTH*2+23, y = 25; 335 335 if (InGame) { 336 336 if (CurrPlayer==FIELD_PLAYER1) { … … 413 413 414 414 sprintf(buf, "Batt:%3d%%", get_batt_perc()); 415 draw_txt_string(( screen_width-camera_info.ts_button_border)/FONT_WIDTH-2-9, screen_height/FONT_HEIGHT-1, buf, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE));415 draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-9, camera_screen.height/FONT_HEIGHT-1, buf, MAKE_COLOR(SCREEN_COLOR, COLOR_WHITE)); 416 416 417 417 Timer();
Note: See TracChangeset
for help on using the changeset viewer.