diff options
author | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-23 12:22:05 +0000 |
---|---|---|
committer | Richard Wilson <rjw@netsurf-browser.org> | 2004-05-23 12:22:05 +0000 |
commit | 9d305e4ec0e621ac76adbed65780aa5ea73a0dd9 (patch) | |
tree | 07fc4a632e0664ca72e3195ab98a5e825424763f /riscos/wimp.c | |
parent | 38befac56ab7b5fbb54d2943321059605d0d77bf (diff) | |
download | netsurf-9d305e4ec0e621ac76adbed65780aa5ea73a0dd9.tar.gz netsurf-9d305e4ec0e621ac76adbed65780aa5ea73a0dd9.tar.bz2 |
[project @ 2004-05-23 12:22:05 by rjw]
Improved style guide compliance and (incomplete) option to save window starting characteristics.
svn path=/import/netsurf/; revision=891
Diffstat (limited to 'riscos/wimp.c')
-rw-r--r-- | riscos/wimp.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/riscos/wimp.c b/riscos/wimp.c index 5cfc2728d..b5f16e69b 100644 --- a/riscos/wimp.c +++ b/riscos/wimp.c @@ -26,13 +26,13 @@ */ static wimpextend_furniture_sizes furniture_sizes; + /** * Gets the default horzontal scrollbar height */ int ro_get_hscroll_height(wimp_w w) { wimp_version_no version; - /* Read the hscroll height */ furniture_sizes.w = w; @@ -54,6 +54,25 @@ int ro_get_hscroll_height(wimp_w w) { return furniture_sizes.border_widths.y0; } + +/** + * Gets the default horzontal scrollbar height + */ +int ro_get_vscroll_width(wimp_w w) { + wimp_version_no version; + + /* Read the hscroll height + */ + furniture_sizes.w = w; + furniture_sizes.border_widths.x1 = 38; + xwimpextend_get_furniture_sizes(&furniture_sizes); + + /* Return the standard (unhacked) size + */ + return furniture_sizes.border_widths.x1; +} + + /** * Reads a modes EIG factors. * |