mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 15:11:37 +00:00
2005-01-28 17:57 Alexander Malmberg <alexander@malmberg.org>
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): If our view is flipped, flip the image. git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@20629 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
3f1e7a2e68
commit
79e9a091e7
2 changed files with 10 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2005-01-28 17:57 Alexander Malmberg <alexander@malmberg.org>
|
||||
|
||||
* Source/NSImageCell.m (-drawInteriorWithFrame:inView:): If our
|
||||
view is flipped, flip the image.
|
||||
|
||||
2005-01-26 Adrian Robert <arobert@cogsci.ucsd.edu>
|
||||
|
||||
* Source/NSApplication.m (-beginModalSessionforWindow:): Center
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
<abstract>The image cell class</abstract>
|
||||
|
||||
Copyright (C) 1999 Free Software Foundation, Inc.
|
||||
Copyright (C) 1999, 2005 Free Software Foundation, Inc.
|
||||
|
||||
Author: Jonathan Gapen <jagapen@smithlab.chem.wisc.edu>
|
||||
Date: 1999
|
||||
|
@ -289,7 +289,10 @@ scaleProportionally(NSSize imageSize, NSRect canvasRect)
|
|||
|
||||
// account for flipped views
|
||||
if (is_flipped)
|
||||
position.y += imageSize.height;
|
||||
{
|
||||
position.y += imageSize.height;
|
||||
imageSize.height = -imageSize.height;
|
||||
}
|
||||
|
||||
// draw!
|
||||
[_cell_image drawInRect: NSMakeRect(position.x, position.y,
|
||||
|
|
Loading…
Reference in a new issue