summaryrefslogtreecommitdiff
path: root/amiga/gui.c
diff options
context:
space:
mode:
authorChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-03 19:21:40 +0000
committerChris Young <chris@unsatisfactorysoftware.co.uk>2008-11-03 19:21:40 +0000
commitd934e52dc6102615dbf095353cd0955d7526d7d1 (patch)
treeb0a14d059a34010349db77f630acb5070d7a1ffb /amiga/gui.c
parentcae0d4a43bdc46586217a1e0375f5d59cadd1fba (diff)
downloadnetsurf-d934e52dc6102615dbf095353cd0955d7526d7d1.tar.gz
netsurf-d934e52dc6102615dbf095353cd0955d7526d7d1.tar.bz2
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
Diffstat (limited to 'amiga/gui.c')
-rwxr-xr-xamiga/gui.c8
1 files changed, 4 insertions, 4 deletions
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,