projects
/
blender-staging.git
/ blobdiff
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
OSX/Cocoa : discard Cocoa GL view flush while in live resize, and send Window size...
[blender-staging.git]
/
intern
/
ghost
/
intern
/
GHOST_WindowCocoa.mm
diff --git
a/intern/ghost/intern/GHOST_WindowCocoa.mm
b/intern/ghost/intern/GHOST_WindowCocoa.mm
index 83f86840eb4b0b61f978ef69ac4e95478a9bc707..aed9bd07cdc01104e134fe5b14d3d3e36bcea43b 100644
(file)
--- a/
intern/ghost/intern/GHOST_WindowCocoa.mm
+++ b/
intern/ghost/intern/GHOST_WindowCocoa.mm
@@
-280,6
+280,18
@@
extern "C" {
return YES;
}
return YES;
}
+- (void) drawRect:(NSRect)rect
+{
+ if ([self inLiveResize])
+ {
+ //Don't redraw while in live resize
+ }
+ else
+ {
+ [super drawRect:rect];
+ }
+}
+
@end
@end