Author: mlytwyn
Date: Sun Apr 3 23:00:23 2016
New Revision: 39616
URL: http://svn.gna.org/viewcvs/gnustep?rev=39616&view=rev
Log:
Remove temporary fix of locking focus for control rectangle
Modified:
libs/gui/branches/gnustep_testplant_branch/Source/NSButton.m
Modified: libs/gui/branches/gnustep_testplant_branch/Source/NSButton.m
URL:
http://svn.gna.org/viewcvs/gnustep/libs/gui/branches/gnustep_testplant_branch/Source/NSButton.m?rev=39616&r1=39615&r2=39616&view=diff
==============================================================================
--- libs/gui/branches/gnustep_testplant_branch/Source/NSButton.m
(original)
+++ libs/gui/branches/gnustep_testplant_branch/Source/NSButton.m Sun Apr
3 23:00:23 2016
@@ -37,12 +37,6 @@
#import "AppKit/NSEvent.h"
#import "AppKit/NSWindow.h"
#import "GNUstepGUI/GSTheme.h"
-
-#if defined(__MINGW__)
-@interface NSView ()
-- (void) _lockFocusInContext: (NSGraphicsContext *)ctxt inRect: (NSRect)rect;
-@end
-#endif
//
// class variables
@@ -550,24 +544,4 @@
return [_cell sound];
}
-#if defined(__MINGW__)
-- (void) _lockFocusInContext: (NSGraphicsContext *)ctxt inRect: (NSRect)rect
-{
- // NSControl drawing bypasses the dirtyRect and draws the entire control
causing issues
- // if the dirty rectangle is a partial rectangle since only the dirty
rectangle
- // gets flushed. This causes problems with cairo drawing on windows since
the
- // theme drawing (i.e. like WinUXTheme) draws directly into the HDC then
does not
- // get flushed out causing partial control/text...
- if ([[[GSTheme theme] name] isEqualToString: @"GNUstep"] == NO)
- {
- // We'll have to assume that any them outside ours is mixing HDC and cairo
drawing...
- [super _lockFocusInContext: ctxt inRect: _bounds];
- return;
- }
-
- // Otherwise use the dirty rectangle given us...
- [super _lockFocusInContext: ctxt inRect: rect];
-}
-#endif
-
@end
_______________________________________________
Gnustep-cvs mailing list
[email protected]
https://mail.gna.org/listinfo/gnustep-cvs