mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-05-30 03:20:37 +00:00
Replaced _rFlags.flipped_view use with -isFlipped and deprecated
_rFlagsType.flipped_view. Still needs some work to automatically invalidate coordinates when the flipping changes e.g. between two drawing sessions. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@31233 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
dda6652e85
commit
a7ca2b775f
6 changed files with 38 additions and 40 deletions
|
@ -956,7 +956,7 @@ static inline NSPoint centerSizeInRect(NSSize innerSize, NSRect outerRect)
|
|||
* Images are always drawn with their bottom-left corner at the origin
|
||||
* so we must adjust the position to take account of a flipped view.
|
||||
*/
|
||||
if (_rFlags.flipped_view)
|
||||
if ([self isFlipped])
|
||||
{
|
||||
dimpleOrigin.y += dimpleSize.height;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue