changeset 812:f8bfb19090f9

dw_window_set_color() now affects boxes immediately (no longer on the next window refresh).
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Fri, 25 Mar 2011 13:25:37 +0000
parents 50ed3e92215b
children 7fa26d8cc8d0
files mac/dw.m
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mac/dw.m	Fri Mar 25 13:11:28 2011 +0000
+++ b/mac/dw.m	Fri Mar 25 13:25:37 2011 +0000
@@ -528,6 +528,9 @@
     else
     {
         bgcolor = [[NSColor colorWithDeviceRed: DW_RED_VALUE(input)/255.0 green: DW_GREEN_VALUE(input)/255.0 blue: DW_BLUE_VALUE(input)/255.0 alpha: 1] retain];
+        [bgcolor set];
+        NSRectFill([self bounds]);
+        [self setNeedsDisplay:YES];
     }
     [orig release];
 }