revert - libatomic is still needed for target code.
[AROS.git] / rom / graphics / updatebitmap.c
blobddb5c8f1d49ebae5fe4fd9cfc50df3f8dc5f34b1
1 /*
2 Copyright © 2011-2017, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Update specified region of the bitmap, taking software composition into account.
6 Private function for cybergraphics.library support.
7 Lang: english
8 */
10 #include "graphics_intern.h"
11 #include "compositor_driver.h"
12 #include "gfxfuncsupport.h"
14 #include <hidd/gfx.h>
16 AROS_LH5(void, UpdateBitMap,
17 AROS_LHA(struct BitMap *, bitmap, A0),
18 AROS_LHA(UWORD, x , D0),
19 AROS_LHA(UWORD, y , D1),
20 AROS_LHA(UWORD, width , D2),
21 AROS_LHA(UWORD, height, D3),
22 struct GfxBase *, GfxBase, 201, Graphics)
24 AROS_LIBFUNC_INIT
26 /* This function must be called only on HIDD bitmaps */
27 update_bitmap(bitmap, HIDD_BM_OBJ(bitmap), x, y, width, height, GfxBase);
29 AROS_LIBFUNC_EXIT
32 void update_bitmap(struct BitMap *bitmap, OOP_Object *bm, UWORD x, UWORD y, UWORD width, UWORD height, struct GfxBase *GfxBase)
34 struct monitor_driverdata *mdd = GET_BM_DRIVERDATA(bitmap);
36 if (mdd->compositor)
37 compositor_UpdateBitMap(mdd->compositor, bm, x, y, width, height, GfxBase);
38 else
39 HIDD_BM_UpdateRect(bm, x, y, width, height);