From d934e52dc6102615dbf095353cd0955d7526d7d1 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 3 Nov 2008 19:21:40 +0000 Subject: Minor fixes, changing some defaults to safer values, screen_modeid should now work. Added screen_depth to stop it complaining when trying to BestModeID() a 32-bit screen on a system that doesn't have one. svn path=/trunk/netsurf/; revision=5650 --- amiga/gui.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index fc66a0086..fa221ea73 100755 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -421,15 +421,15 @@ void gui_init2(int argc, char** argv) if ((!option_homepage_url) || (option_homepage_url[0] == '\0')) option_homepage_url = (char *)strdup(NETSURF_HOMEPAGE); - if(option_modeid) + if((option_modeid) && (option_modeid[0] != '\0')) { - id = option_modeid; + id = strtoul(option_modeid,NULL,0); } else { id = p96BestModeIDTags(P96BIDTAG_NominalWidth,option_window_screen_width, P96BIDTAG_NominalHeight,option_window_screen_height, - P96BIDTAG_Depth,32); + P96BIDTAG_Depth,option_screen_depth); if(id == INVALID_ID) die(messages_get("NoMode")); } @@ -444,7 +444,7 @@ void gui_init2(int argc, char** argv) scrn = OpenScreenTags(NULL, SA_Width,option_window_screen_width, SA_Height,option_window_screen_height, - SA_Depth,32, + SA_Depth,option_screen_depth, SA_DisplayID,id, SA_Title,nsscreentitle, SA_LikeWorkbench,TRUE, -- cgit v1.2.3