changeset 1458:23f7fcc1c727

Split out scrollbars from the rest of the ranged widgets on OS/2... the others require extra size.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 15 Dec 2011 22:29:47 +0000
parents c22477fe7347
children 98de42fc664d
files os2/dw.c
diffstat 1 files changed, 9 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/os2/dw.c	Thu Dec 15 22:22:49 2011 +0000
+++ b/os2/dw.c	Thu Dec 15 22:29:47 2011 +0000
@@ -4598,13 +4598,17 @@
            extraheight = 4;
        }
    }
-   /* Ranged: Slider/Percent/Scrollbar */
-   else if(strncmp(tmpbuf, "#38", 4)== 0 || 
-           strncmp(tmpbuf, "#8", 3)== 0)
+   /* Ranged: Slider/Percent */
+   else if(strncmp(tmpbuf, "#38", 4)== 0)
+   {
+       thiswidth = 100;
+       thisheight = 20;
+   }
+   /* Scrollbar */
+   else if(strncmp(tmpbuf, "#8", 3)== 0)
    {
       /* Check for vertical scrollbar */
-      if(strncmp(tmpbuf, "#8", 3)== 0 &&
-         WinQueryWindowULong(handle, QWL_STYLE) & SBS_VERT)
+      if(WinQueryWindowULong(handle, QWL_STYLE) & SBS_VERT)
       {
          thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL);
          thisheight = 100;