diff options
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-x | amiga/gui.c | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/amiga/gui.c b/amiga/gui.c index 53ca914d7..23b5d0311 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -486,31 +486,32 @@ void gui_init2(int argc, char** argv) if(notalreadyrunning) { - if((option_modeid) && (strncmp(option_modeid,"0x",2) == 0)) - { - id = strtoul(option_modeid,NULL,0); - } - else + if(!option_use_pubscreen || option_use_pubscreen[0] == '\0') { - struct ScreenModeRequester *screenmodereq = NULL; - - if(screenmodereq = AllocAslRequest(ASL_ScreenModeRequest,NULL)) + if((option_modeid) && (strncmp(option_modeid,"0x",2) == 0)) { - AslRequestTags(screenmodereq, - ASLSM_MinDepth,24, - ASLSM_MaxDepth,32, - TAG_DONE); + id = strtoul(option_modeid,NULL,0); + } + else + { + struct ScreenModeRequester *screenmodereq = NULL; + + if(screenmodereq = AllocAslRequest(ASL_ScreenModeRequest,NULL)) + { + AslRequestTags(screenmodereq, + ASLSM_MinDepth,24, + ASLSM_MaxDepth,32, + TAG_DONE); - id = screenmodereq->sm_DisplayID; - option_modeid = malloc(20); - sprintf(option_modeid,"0x%lx",id); + id = screenmodereq->sm_DisplayID; + option_modeid = malloc(20); + sprintf(option_modeid,"0x%lx",id); - FreeAslRequest(screenmodereq); + FreeAslRequest(screenmodereq); + options_write("PROGDIR:Resources/Options"); + } } - } - if(!option_use_pubscreen || option_use_pubscreen[0] == '\0') - { scrn = OpenScreenTags(NULL, // SA_Width,option_window_screen_width, // SA_Height,option_window_screen_height, |