mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
* Source/NSView.m (_setNeedsDisplayInRect_real:): Enlarge
(if necessary) _invalidRect so it lies on integral device pixels. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@33809 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
046bc43c63
commit
c4048d4f4b
2 changed files with 12 additions and 0 deletions
|
@ -1,3 +1,8 @@
|
|||
2011-09-06 Eric Wasylishen <ewasylishen@gmail.com>
|
||||
|
||||
* Source/NSView.m (_setNeedsDisplayInRect_real:): Enlarge
|
||||
(if necessary) _invalidRect so it lies on integral device pixels.
|
||||
|
||||
2011-08-31 Fred Kiefer <FredKiefer@gmx.de>
|
||||
|
||||
* Source/NSApplication.m (-setApplicationIconImage): Ignore this
|
||||
|
|
|
@ -2816,6 +2816,13 @@ in the main thread.
|
|||
_invalidRect = invalidRect;
|
||||
if (firstOpaque == self)
|
||||
{
|
||||
/**
|
||||
* Enlarge (if necessary) _invalidRect so it lies on integral device pixels
|
||||
*/
|
||||
const NSRect inBase = [self convertRectToBase: _invalidRect];
|
||||
const NSRect inBaseRounded = NSIntegralRect(inBase);
|
||||
_invalidRect = [self convertRectFromBase: inBaseRounded];
|
||||
|
||||
[_window setViewsNeedDisplay: YES];
|
||||
}
|
||||
else
|
||||
|
|
Loading…
Reference in a new issue