mirror of
https://github.com/gnustep/libs-gui.git
synced 2025-04-23 07:00:46 +00:00
Rearrange coloration of NSDrawButton to match visually the result of the function on OpenStep.
git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/gui/trunk@10854 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
parent
6036c8b9ba
commit
5638d3fd8d
2 changed files with 18 additions and 6 deletions
12
ChangeLog
12
ChangeLog
|
@ -1,3 +1,15 @@
|
|||
2001-09-09 Michael Hanni <mhanni@sprintmail.com>
|
||||
|
||||
* Source/Functions.m (NSDrawButton): rearrange the order of
|
||||
coloring to take into account the nature of NSDrawTiledRects;
|
||||
fixes visual irregularities (most noticeably in NSMenu).
|
||||
|
||||
2001-09-08 Michael Hanni <mhanni@sprintmail.com>
|
||||
|
||||
* Source/NSBrowser.m (-matrixInColumn:): Return nil if caller
|
||||
requests column '-1'. Allows NSSave/OpenPanel to function. Hacky
|
||||
though, why are we requesting column '-1' anyways?
|
||||
|
||||
2001-09-06 Adam Fedor <fedor@gnu.org>
|
||||
|
||||
* Source/NSView.m (-lockFocusInRect:): Switch back to gsave/grestore
|
||||
|
|
|
@ -417,14 +417,14 @@ NSDrawColorTiledRects(NSRect boundsRect, NSRect clipRect,
|
|||
void
|
||||
NSDrawButton(const NSRect aRect, const NSRect clipRect)
|
||||
{
|
||||
NSRectEdge up_sides[] = {NSMinXEdge, NSMaxYEdge,
|
||||
NSMaxXEdge, NSMinYEdge,
|
||||
NSRectEdge up_sides[] = {NSMaxXEdge, NSMinYEdge,
|
||||
NSMinXEdge, NSMaxYEdge,
|
||||
NSMaxXEdge, NSMinYEdge};
|
||||
NSRectEdge down_sides[] = {NSMinXEdge, NSMinYEdge,
|
||||
NSMaxXEdge, NSMaxYEdge,
|
||||
NSRectEdge down_sides[] = {NSMaxXEdge, NSMaxYEdge,
|
||||
NSMinXEdge, NSMinYEdge,
|
||||
NSMaxXEdge, NSMaxYEdge};
|
||||
float grays[] = {NSWhite, NSWhite,
|
||||
NSBlack, NSBlack,
|
||||
float grays[] = {NSBlack, NSBlack,
|
||||
NSWhite, NSWhite,
|
||||
NSDarkGray, NSDarkGray};
|
||||
NSRect rect;
|
||||
NSGraphicsContext *ctxt = GSCurrentContext();
|
||||
|
|
Loading…
Reference in a new issue