summaryrefslogtreecommitdiff
path: root/framebuffer
diff options
context:
space:
mode:
authorJohn Mark Bell <jmb@netsurf-browser.org>2010-02-10 07:22:50 +0000
committerJohn Mark Bell <jmb@netsurf-browser.org>2010-02-10 07:22:50 +0000
commitbabf642970f9bc44b40baac01c4002e596a68f83 (patch)
tree55dadb4278e57468a8d86c012ef935d3c6f04ceb /framebuffer
parentfcf264d4cd54a2509856200ac2006141e0fc8438 (diff)
downloadnetsurf-babf642970f9bc44b40baac01c4002e596a68f83.tar.gz
netsurf-babf642970f9bc44b40baac01c4002e596a68f83.tar.bz2
Process command line after loading options file.
svn path=/trunk/netsurf/; revision=9964
Diffstat (limited to 'framebuffer')
-rw-r--r--framebuffer/gui.c9
1 files changed, 4 insertions, 5 deletions
diff --git a/framebuffer/gui.c b/framebuffer/gui.c
index eef613ce1..05c363c0b 100644
--- a/framebuffer/gui.c
+++ b/framebuffer/gui.c
@@ -419,11 +419,7 @@ int main(int argc, char** argv)
void gui_init(int argc, char** argv)
{
char buf[PATH_MAX];
- nsfb_t *nsfb;
-
- if (process_cmdline(argc,argv) != true)
- die("unable to process command line.\n");
-
+ nsfb_t *nsfb;
fb_find_resource(buf, "Aliases", "./framebuffer/res/Aliases");
LOG(("Using '%s' as Aliases file", buf));
@@ -451,6 +447,9 @@ void gui_init(int argc, char** argv)
fb_find_resource(buf, "quirks.css", "./framebuffer/res/quirks.css");
quirks_stylesheet_url = path_to_url(buf);
+ if (process_cmdline(argc,argv) != true)
+ die("unable to process command line.\n");
+
nsfb = framebuffer_initialise(fename, fewidth, feheight, febpp);
if (nsfb == NULL)
die("Unable to initialise framebuffer");