2 Copyright © 2011, The AROS Development Team. All rights reserved.
5 Desc: Update specified region of the bitmap, taking software composition into account.
6 Private function for cybergraphics.library support.
10 #include "graphics_intern.h"
11 #include "compositing_driver.h"
12 #include "gfxfuncsupport.h"
14 #include <hidd/graphics.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
)
26 /* This function must be called only on HIDD bitmaps */
27 update_bitmap(bitmap
, HIDD_BM_OBJ(bitmap
), x
, y
, width
, height
, GfxBase
);
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
);
37 composer_UpdateBitMap(mdd
->composer
, bm
, x
, y
, width
, height
, GfxBase
);
39 HIDD_BM_UpdateRect(bm
, x
, y
, width
, height
);