summaryrefslogtreecommitdiff
path: root/riscos/wimp.c
diff options
context:
space:
mode:
Diffstat (limited to 'riscos/wimp.c')
-rw-r--r--riscos/wimp.c21
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.
*