mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 20:30:37 +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
0cba25353e
commit
26e09cb5f2
2 changed files with 12 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue