Fixed binary search: no more infinite loops when vendor is unknown.
[tangerine.git] / workbench / tools / commodities / startmenu / support.c
blob1e471cc1363d0866af708b203e7da562fd37b808
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
4 */
6 #include <graphics/gfx.h>
7 #include <intuition/screens.h>
8 #include <proto/graphics.h>
10 #include "main.h"
11 #include "support.h"
13 void RenderFrame(struct RastPort *rp, struct DrawInfo *dri, WORD x1, WORD y1, WORD x2, WORD y2, BOOL recessed)
15 WORD pen1 = dri->dri_Pens[SHINEPEN];
16 WORD pen2 = dri->dri_Pens[SHADOWPEN];
18 if (recessed)
20 pen1 ^= pen2;
21 pen2 ^= pen1;
22 pen1 ^= pen2;
25 SetDrMd(rp, JAM2);
26 SetAPen(rp, pen1);
28 RectFill(rp, x1, y1, x2, y1);
29 RectFill(rp, x1, y1 + 1, x1, y2);
31 SetAPen(rp, pen2);
33 RectFill(rp, x2, y1 + 1, x2, y2);
34 RectFill(rp, x1 + 1, y2, x2 - 1, y2);