comparison os2/dw.c @ 276:dfbda83b7cad

Eliminate configure event callbacks when either the width or height is 0.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Thu, 06 Mar 2003 06:51:34 +0000
parents bf8b907f8a29
children df0665ba147f
comparison
equal deleted inserted replaced
275:b366518618d9 276:dfbda83b7cad
1976 break; 1976 break;
1977 case WM_SIZE: 1977 case WM_SIZE:
1978 { 1978 {
1979 int (* API sizefunc)(HWND, int, int, void *) = (int (* API)(HWND, int, int, void *))tmp->signalfunction; 1979 int (* API sizefunc)(HWND, int, int, void *) = (int (* API)(HWND, int, int, void *))tmp->signalfunction;
1980 1980
1981 if(hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd) 1981 if((hWnd == tmp->window || WinWindowFromID(tmp->window, FID_CLIENT) == hWnd) && SHORT1FROMMP(mp2) && SHORT2FROMMP(mp2))
1982 { 1982 {
1983 result = sizefunc(tmp->window, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), tmp->data); 1983 result = sizefunc(tmp->window, SHORT1FROMMP(mp2), SHORT2FROMMP(mp2), tmp->data);
1984 tmp = NULL; 1984 tmp = NULL;
1985 } 1985 }
1986 } 1986 }