# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1323988187 0 # Node ID 23f7fcc1c72703c917322e63b81750d6fcc3f8d4 # Parent c22477fe7347845effee36a697a4eb8540d30593 Split out scrollbars from the rest of the ranged widgets on OS/2... the others require extra size. diff -r c22477fe7347 -r 23f7fcc1c727 os2/dw.c --- 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;