comparison os2/dw.c @ 574:70c8a30c254f

Fixed incorrect calling convention on the click default handler on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 10 Feb 2005 00:38:55 +0000
parents 828e6a66c5c5
children cea01bd2e0a7
comparison
equal deleted inserted replaced
573:314abd650968 574:70c8a30c254f
946 return color; 946 return color;
947 } 947 }
948 948
949 unsigned long _os2_color(unsigned long color) 949 unsigned long _os2_color(unsigned long color)
950 { 950 {
951 return DW_RED_VALUE(color) << 16 | DW_GREEN_VALUE(color) << 8 | DW_BLUE_VALUE(color);; 951 return DW_RED_VALUE(color) << 16 | DW_GREEN_VALUE(color) << 8 | DW_BLUE_VALUE(color);
952 } 952 }
953 953
954 BOOL _MySetWindowPos(HWND hwnd, HWND parent, HWND behind, LONG x, LONG y, LONG cx, LONG cy, ULONG fl) 954 BOOL _MySetWindowPos(HWND hwnd, HWND parent, HWND behind, LONG x, LONG y, LONG cx, LONG cy, ULONG fl)
955 { 955 {
956 int height = _get_height(parent); 956 int height = _get_height(parent);
1561 /* Find any callbacks for this function */ 1561 /* Find any callbacks for this function */
1562 while(tmp) 1562 while(tmp)
1563 { 1563 {
1564 if(tmp->message == WM_COMMAND) 1564 if(tmp->message == WM_COMMAND)
1565 { 1565 {
1566 int (*clickfunc)(HWND, void *) = (int (*)(HWND, void *))tmp->signalfunction; 1566 int (* API clickfunc)(HWND, void *) = (int (* API)(HWND, void *))tmp->signalfunction;
1567 1567
1568 /* Make sure it's the right window, and the right ID */ 1568 /* Make sure it's the right window, and the right ID */
1569 if(tmp->window == handle) 1569 if(tmp->window == handle)
1570 { 1570 {
1571 clickfunc(tmp->window, tmp->data); 1571 clickfunc(tmp->window, tmp->data);