Ignore:
Timestamp:
12/30/11 04:07:44 (17 months ago)
Author:
philmoz
Message:

Update for module system for review in reyalp-flt branch

  • renamed camera_info to camera_sensor
  • added camera_screen structure for bitmap details
  • cleanup up unnecessary vid_get_bitmap_??? functions (moved to camera.h / platform_camera.h)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/reyalp-flt/core/gui_reversi.c

    r1513 r1514  
    205205    uchar x, y; 
    206206 
    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)); 
    208208    for (y=0; y<8; ++y) { 
    209209        for (x=0; x<8; ++x) { 
     
    229229    InGame=0; 
    230230 
    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; 
    234234    cell_size = field_size >> 3; 
    235235 
     
    332332//------------------------------------------------------------------- 
    333333static 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; 
    335335    if (InGame) {  
    336336        if (CurrPlayer==FIELD_PLAYER1) {  
     
    413413 
    414414    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)); 
    416416 
    417417    Timer(); 
Note: See TracChangeset for help on using the changeset viewer.