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:
michael 2001-09-10 06:04:38 +00:00
parent 088fe40d5c
commit fa9637f045
2 changed files with 18 additions and 6 deletions

View file

@ -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();