2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
8 #include <aros/debug.h>
9 #include "graphics_intern.h"
10 #include "gfxfuncsupport.h"
12 /*****************************************************************************
15 #include <proto/graphics.h>
17 AROS_LH7(void, WriteChunkyPixels
,
20 AROS_LHA(struct RastPort
*, rp
, A0
),
21 AROS_LHA(LONG
, xstart
, D0
),
22 AROS_LHA(LONG
, ystart
, D1
),
23 AROS_LHA(LONG
, xstop
, D2
),
24 AROS_LHA(LONG
, ystop
, D3
),
25 AROS_LHA(UBYTE
*, array
, A2
),
26 AROS_LHA(LONG
, bytesperrow
, D4
),
29 struct GfxBase
*, GfxBase
, 176, Graphics
)
48 27-11-96 digulla automatically created from
49 graphics_lib.fd and clib/graphics_protos.h
51 *****************************************************************************/
54 AROS_LIBBASE_EXT_DECL(struct GfxBase
*,GfxBase
)
56 HIDDT_PixelLUT pixlut
;
58 pixlut
.entries
= AROS_PALETTE_SIZE
;
59 pixlut
.pixels
= IS_HIDD_BM(rp
->BitMap
) ? HIDD_BM_PIXTAB(rp
->BitMap
) : NULL
;
66 if ((xstart
> xstop
) || (ystart
> ystop
)) return;
70 if (GetBitMapAttr(rp
->BitMap
, BMA_DEPTH
) > 8)
72 D(bug("WriteChunkyPixels: can't work on hicolor/truecolor screen without LUT"));
77 write_pixels_8(rp
, array
86 } /* WriteChunkyPixels */