comparison mac/dw.m @ 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
comparison
equal deleted inserted replaced
811:50ed3e92215b 812:f8bfb19090f9
526 bgcolor = nil; 526 bgcolor = nil;
527 } 527 }
528 else 528 else
529 { 529 {
530 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]; 530 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];
531 [bgcolor set];
532 NSRectFill([self bounds]);
533 [self setNeedsDisplay:YES];
531 } 534 }
532 [orig release]; 535 [orig release];
533 } 536 }
534 @end 537 @end
535 538