comparison os2/dw.c @ 124:edf615d8266e

Use float instead of int for percent on Windows. And a minor safety check on OS/2.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 20 Oct 2002 01:41:04 +0000
parents 63f61a702b17
children 0d2cbd9d4028
comparison
equal deleted inserted replaced
123:63f61a702b17 124:edf615d8266e
2317 2317
2318 case WM_SIZE: 2318 case WM_SIZE:
2319 { 2319 {
2320 int x = SHORT1FROMMP(mp2), y = SHORT2FROMMP(mp2); 2320 int x = SHORT1FROMMP(mp2), y = SHORT2FROMMP(mp2);
2321 2321
2322 if(x > 0 && y > 0) 2322 if(x > 0 && y > 0 && percent)
2323 { 2323 {
2324 if(type == BOXHORZ) 2324 if(type == BOXHORZ)
2325 { 2325 {
2326 int newx = x - SPLITBAR_WIDTH, newy = y; 2326 int newx = x - SPLITBAR_WIDTH, newy = y;
2327 float ratio = (float)*percent/(float)100.0; 2327 float ratio = (float)*percent/(float)100.0;