Ignore:
Timestamp:
08/14/08 00:28:20 (5 years ago)
Author:
phyrephox
Message:

+ added beta support for ixus40_sd300 -> http://chdk.setepontos.com/index.php/topic,2042.msg19516.html#msg19516 thx to fishpepper
+ italian language file (assembla bugtracker)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/juciphox/core/gui.c

    r479 r481  
    17471747void gui_init() 
    17481748{ 
     1749 
    17491750    gui_mode = GUI_MODE_NONE; 
    17501751    gui_restore = 0; 
     
    18091810    enum Gui_Mode gui_mode_old; 
    18101811    static int show_script_console=0; 
    1811  
    18121812    if (gui_splash) { 
    18131813        if (gui_splash>(SPLASH_TIME-4)) { 
    18141814            gui_draw_splash(); 
     1815                conf.show_osd = 0; 
    18151816        } else if (gui_splash==1 && (mode_get()&MODE_MASK) == gui_splash_mode && (gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT)) { 
    18161817            draw_restore(); 
     1818            conf.show_osd = 1; 
    18171819        } 
    18181820        --gui_splash; 
     
    25722574        draw_string(x+((w-strlen(text[i])*FONT_WIDTH)>>1), y+i*FONT_HEIGHT+4, text[i], cl); 
    25732575    } 
    2574     int mx,my; 
     2576    int pos; 
     2577    int mx=0; 
     2578    int my=0; 
    25752579    int offset_x = (screen_width-150)>>1; 
    25762580    int offset_y = ((screen_height-84)>>1) - 42; 
     2581    const color color_lookup[8] = {0xFF, 0x2E, 0x22, 0x3D, 0x1F,  0x21, 0x00, 0x11}; 
    25772582     
    2578     for(mx=0; mx<150; mx++){ 
    2579         for(my=0; my<84; my++){ 
    2580             color c = header_data[my*150+mx]; 
    2581             if (c != 0x00) 
     2583    for(pos=0; pos<HEADER_DATA_LEN; pos++){ 
     2584        char data = header_data[pos]; 
     2585        color c = color_lookup[(data>>5) & 0x07]; 
     2586        for(i=0; i<(data&0x1F)+1; i++){ 
     2587            if (c!=0x00){ 
    25822588                draw_pixel(offset_x+mx,offset_y+my,c); 
     2589            } 
     2590            if (mx==149){ 
     2591                mx=0; 
     2592                my++; 
     2593            }else{ 
     2594                mx++; 
     2595            } 
     2596             
    25832597        } 
    25842598    } 
Note: See TracChangeset for help on using the changeset viewer.