Prefs:Printer - Add terrible hack for m68k
[AROS.git] / rom / graphics / updatebitmap.c
blobe8140d72e79c81e0431360bc31c8a40e7bc76411
1 /*
2 Copyright © 2011, 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 "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)
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->composer)
37 composer_UpdateBitMap(mdd->composer, bm, x, y, width, height, GfxBase);
38 else
39 HIDD_BM_UpdateRect(bm, x, y, width, height);