Changeset 116


Ignore:
Timestamp:
04/15/07 09:14:03 (7 years ago)
Author:
GrAnd
Message:
  • Splash: redused show time

+ Splash: option to switch off

Location:
branches/grand
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/grand/core/conf.c

    r114 r116  
    104104    CONF_INFO( 45, conf.reader_rbf_file,        CONF_DEF_PTR,   ptr:"", NULL), 
    105105    CONF_INFO( 46, conf.reader_codepage,        CONF_DEF_VALUE, i:FONT_CP_WIN, NULL), 
     106    CONF_INFO( 47, conf.splash_show,            CONF_DEF_VALUE, i:1, NULL), 
    106107}; 
    107108#define CONF_NUM (sizeof(conf_info)/sizeof(conf_info[0])) 
  • branches/grand/core/gui.c

    r114 r116  
    2525 
    2626#define OPTIONS_AUTOSAVE 
     27#define SPLASH_TIME               20 
    2728 
    2829// forward declarations 
     
    115116    {"Games ->",                    MENUITEM_SUBMENU, (int*)&games_submenu }, 
    116117    {"Flash-light",                 MENUITEM_BOOL,    &conf.flashlight }, 
     118    {"Show splash screen on load",  MENUITEM_BOOL,    &conf.splash_show }, 
    117119    {"Draw palette",                MENUITEM_PROC,    (int*)gui_draw_palette }, 
    118120    {"Show build info",             MENUITEM_PROC,    (int*)gui_show_build_info }, 
     
    369371static volatile int gui_restore; 
    370372static volatile int gui_in_redraw; 
    371 static int gui_splash = 50, gui_splash_mode; 
     373static int gui_splash, gui_splash_mode; 
    372374static char osd_buf[32]; 
    373375#ifdef OPTIONS_AUTOSAVE 
     
    381383    gui_restore = 0; 
    382384    gui_in_redraw = 0; 
     385    gui_splash = (conf.splash_show)?SPLASH_TIME:0; 
    383386    draw_init(); 
    384387 
     
    409412 
    410413    if (gui_splash) { 
    411         if (gui_splash>46) { 
     414        if (gui_splash>(SPLASH_TIME-4)) { 
    412415            gui_draw_splash(); 
    413416        } else if (gui_splash==1 && (mode_get()&MODE_MASK) == gui_splash_mode && (gui_mode==GUI_MODE_NONE || gui_mode==GUI_MODE_ALT)) { 
  • branches/grand/include/conf.h

    r114 r116  
    6565 
    6666    int flashlight; 
     67    int splash_show; 
    6768 
    6869    int ns_enable_memdump; 
Note: See TracChangeset for help on using the changeset viewer.