Changeset 1897


Ignore:
Timestamp:
06/03/12 01:28:15 (13 months ago)
Author:
philmoz
Message:

Fix for Connect 4 from TobiMarg? - http://chdk.setepontos.com/index.php?topic=650.msg86110#msg86110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/core/games/gui_4wins.c

    r1594 r1897  
    333333        draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+30, 3, lang_str(LANG_CONNECT4_RIVAL), TEXT_COLOR); 
    334334    sprintf(str, "%d",count_win[0]); 
    335         draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-10, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR)); 
     335        draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+34, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P1_COLOR)); 
    336336    sprintf(str, ":"); 
    337         draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-7, camera_screen.height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR); 
     337        draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+36, camera_screen.height/FONT_HEIGHT-9, str, INFO_TEXT_COLOR); 
    338338    sprintf(str, "%d",count_win[1]); 
    339         draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-4, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR)); 
     339        draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+38, camera_screen.height/FONT_HEIGHT-9, str, MAKE_COLOR(INFO_COLOR, P2_COLOR)); 
    340340        draw_mode(); 
    341341        if(cur_player==2&&!mode_rival) set(); 
     
    371371void gui_4wins_draw(int enforce_redraw) { 
    372372  static char str[16]; 
    373   sprintf(str, "%3d%%", get_batt_perc()); 
    374   draw_txt_string((camera_screen.width-camera_screen.ts_button_border)/FONT_WIDTH-2-13, camera_screen.height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 
    375   gui_osd_draw_clock(camera_screen.ts_button_border+290,208,INFO_TEXT_COLOR); 
     373  sprintf(str, "Batt: %3d%%", get_batt_perc()); 
     374  draw_txt_string((camera_screen.ts_button_border/FONT_WIDTH)+31, camera_screen.height/FONT_HEIGHT-2, str, INFO_TEXT_COLOR); 
     375  gui_osd_draw_clock(camera_screen.ts_button_border+35*FONT_WIDTH,208-FONT_HEIGHT,INFO_TEXT_COLOR); 
    376376} 
    377377 
Note: See TracChangeset for help on using the changeset viewer.