# HG changeset patch # User bsmith@81767d24-ef19-dc11-ae90-00e081727c95 # Date 1322815941 0 # Node ID 246aadf8fbd4c8e14615e45e49c4ba1cf06b8fac # Parent 22ba64e357de18efcf6b1d3a55e5412091769922 Fixes for the OS/2 code. diff -r 22ba64e357de -r 246aadf8fbd4 os2/dw.c --- a/os2/dw.c Fri Dec 02 08:22:11 2011 +0000 +++ b/os2/dw.c Fri Dec 02 08:52:21 2011 +0000 @@ -4694,7 +4694,7 @@ } /* Combobox */ - if(strnicmp(tmpbuf, WC_COMBOBOX, strlen(WC_COMBOBOX)+1) == 0) + if(strncmp(tmpbuf, "#2", 3)==0) { dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight); thiswidth = 150; @@ -4702,18 +4702,21 @@ if(thisheight < 18) thisheight = 18; } - else if(strnicmp(tmpbuf, WC_SPINBUTTON, strlen(WC_SPINBUTTON)+1) == 0) + /* Spinbutton */ + else if(strncmp(tmpbuf, "#32", 4)==0) { dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight); thiswidth = 50; } - else if(strnicmp(tmpbuf, WC_ENTRYFIELD, strlen(WC_ENTRYFIELD)+1) == 0) + /* Entryfield */ + else if(strncmp(tmpbuf, "#6", 3)==0) { dw_font_text_extents_get(handle, NULL, testtext, NULL, &thisheight); thiswidth = 150; extraheight = 6; } - else if(strnicmp(tmpbuf, WC_BUTTON, strlen(WC_BUTTON)+1) == 0) + /* Button */ + else if(strncmp(tmpbuf, "#3", 3)==0) { ULONG style = WinQueryWindowULong(handle, QWL_STYLE);