diff options
author | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 18:58:03 +0000 |
---|---|---|
committer | Vincent Sanders <vince@netsurf-browser.org> | 2009-02-26 18:58:03 +0000 |
commit | 2fa78a799b3b4e5ee2bb8b846f2597d7eea88912 (patch) | |
tree | c93afe85cc5b571aaeb7253905326bd5b43107e1 /framebuffer/fb_options.h | |
parent | 12f07aa8fd6ae7582aa10db0ade34ef78f4cd5c4 (diff) | |
download | netsurf-2fa78a799b3b4e5ee2bb8b846f2597d7eea88912.tar.gz netsurf-2fa78a799b3b4e5ee2bb8b846f2597d7eea88912.tar.bz2 |
Improve option handling code in frontends
Improve depth handling in the VNC frontend
svn path=/trunk/netsurf/; revision=6641
Diffstat (limited to 'framebuffer/fb_options.h')
-rw-r--r-- | framebuffer/fb_options.h | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/framebuffer/fb_options.h b/framebuffer/fb_options.h index ef61df335..293b99a52 100644 --- a/framebuffer/fb_options.h +++ b/framebuffer/fb_options.h @@ -21,21 +21,24 @@ #include "desktop/options.h" -extern char *option_fb_mode; +extern int option_fb_depth; +extern int option_fb_refresh; extern char *option_fb_device; extern char *option_fb_input_devpath; extern char *option_fb_input_glob; #define EXTRA_OPTION_DEFINE \ - char *option_fb_mode = 0; \ + int option_fb_depth = 32; \ + int option_fb_refresh = 70; \ char *option_fb_device = 0; \ char *option_fb_input_devpath = 0; \ char *option_fb_input_glob = 0; -#define EXTRA_OPTION_TABLE \ - { "fb_mode", OPTION_STRING, &option_fb_mode }, \ - { "fb_device", OPTION_STRING, &option_fb_device }, \ - { "fb_input_devpath", OPTION_STRING, &option_fb_input_devpath }, \ - { "fb_input_glob", OPTION_STRING, &option_fb_input_glob }, +#define EXTRA_OPTION_TABLE \ + { "fb_depth", OPTION_INTEGER, &option_fb_depth }, \ + { "fb_refresh", OPTION_INTEGER, &option_fb_refresh }, \ + { "fb_device", OPTION_STRING, &option_fb_device }, \ + { "fb_input_devpath", OPTION_STRING, &option_fb_input_devpath }, \ + { "fb_input_glob", OPTION_STRING, &option_fb_input_glob }, #endif |