2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: Graphics function RectFill()
11 #include "graphics_intern.h"
12 #include "gfxfuncsupport.h"
13 #include "graphics_driver.h"
15 /*****************************************************************************
18 #include <graphics/rastport.h>
19 #include <proto/graphics.h>
21 AROS_LH5(void, RectFill
,
24 AROS_LHA(struct RastPort
*, rp
, A1
),
25 AROS_LHA(LONG
, xMin
, D0
),
26 AROS_LHA(LONG
, yMin
, D1
),
27 AROS_LHA(LONG
, xMax
, D2
),
28 AROS_LHA(LONG
, yMax
, D3
),
31 struct GfxBase
*, GfxBase
, 51, Graphics
)
34 Fills a rectangular area with the current pens, drawing mode
35 and areafill pattern. If no areafill pattern is defined fill
40 xMin,yMin - upper left corner
41 xMax,yMax - lower right corner
56 29-10-95 digulla automatically created from
57 graphics_lib.fd and clib/graphics_protos.h
59 *****************************************************************************/
68 if ((xMax
>= xMin
) && (yMax
>= yMin
))
72 /* When rastport has areaptrn, let BltPattern do the job */
73 BltPattern(rp
, NULL
, xMin
, yMin
, xMax
, yMax
, 0);
77 OOP_Object
*gc
= GetDriverData(rp
, GfxBase
);
79 HIDDT_Pixel oldfg
= 0;
81 if (rp
->DrawMode
& INVERSVID
) {
83 GC_FG(gc
) = GC_BG(gc
);
86 /* This is the same as fillrect_pendrmd() */
93 do_render_with_gc(rp
, NULL
, &rr
, fillrect_render
, NULL
, gc
, TRUE
, FALSE
, GfxBase
);
95 if (rp
->DrawMode
& INVERSVID
) {
99 } /* if ((xMax >= xMin) && (yMax >= yMin)) */