diff win/dw.c @ 129:e47c52b37cdd

Code cleanup and OS/2 and Windows.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Sun, 20 Oct 2002 06:36:18 +0000
parents c5c3ccb84ac7
children 2584a4646b41
line wrap: on
line diff
--- a/win/dw.c	Sun Oct 20 06:28:28 2002 +0000
+++ b/win/dw.c	Sun Oct 20 06:36:18 2002 +0000
@@ -6612,11 +6612,16 @@
  */
 void dw_splitbar_set(HWND handle, float percent)
 {
-	/* We probably need to force a redraw here */
 	float *mypercent = (float *)dw_window_get_data(handle, "_dw_percent");
+	int type = (int)dw_window_get_data(handle, "_dw_type");
+    unsigned long width, height;
 
 	if(mypercent)
 		*mypercent = percent;
+
+	dw_window_get_pos_size(handle, NULL, NULL, &width, &height);
+
+	_handle_splitbar_resize(handle, percent, type, width, height);
 }
 
 /*