* NSSliderCell.m: knobRectFlipped: fix draw bugs in slider.app example.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@3801 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
Felipe A. Rodriguez 1999-02-25 07:14:17 +00:00
parent a136e2ee9c
commit d7feaa84c0
2 changed files with 27 additions and 21 deletions

View file

@ -1,3 +1,7 @@
Wed Feb 24 Felipe A. Rodriguez <farz@mindspring.com>
* NSSliderCell.m: knobRectFlipped: fix draw bugs in slider.app example.
Mon Feb 22 8:30:00 1999 Richard Frith-Macdonald <richard@brainstorm.co.uk>
* NSView.m: Tidied coordinate conversion code to use new system with

View file

@ -93,13 +93,15 @@
size = [image size];
if (_isVertical) {
origin.x = 0;
origin.y = (_trackRect.size.height - size.height) * floatValue;
if (_isVertical)
{
origin.x = 2;
origin.y = ((_trackRect.size.height - size.height) * floatValue) + 2;
}
else {
origin.x = (_trackRect.size.width - size.width) * floatValue;
origin.y = 0;
else
{
origin.x = ((_trackRect.size.width - size.width) * floatValue) + 2;
origin.y = 2;
}
return NSMakeRect (origin.x, origin.y, size.width, size.height);