Prefs:Printer - Add terrible hack for m68k
[AROS.git] / rom / graphics / compositing_driver.h
blob847ce021f510ce14933938f35c17f76f043fc0e5
1 #include <hidd/compositing.h>
2 #include <hidd/graphics.h>
3 #include <oop/oop.h>
5 /* Inline stubs for calling the driver */
7 static inline OOP_Object *composer_LoadViewPorts(OOP_Object *o, struct HIDD_ViewPortData *Data, BOOL *Active, struct GfxBase *GfxBase)
9 struct pHidd_Compositing_BitMapStackChanged bscmsg =
11 mID : PrivGBase(GfxBase)->HiddCompositingMethodBase + moHidd_Compositing_BitMapStackChanged,
12 data : Data,
13 active : Active
16 return (OOP_Object *)OOP_DoMethod(o, &bscmsg.mID);
19 static inline BOOL composer_ScrollBitMap(OOP_Object *o, OOP_Object *bitmap, SIPTR *x, SIPTR *y, struct GfxBase *GfxBase)
21 struct pHidd_Compositing_BitMapPositionChange msg =
23 mID : PrivGBase(GfxBase)->HiddCompositingMethodBase + moHidd_Compositing_BitMapPositionChange,
24 bm : bitmap,
25 newxoffset : x,
26 newyoffset : y
29 return OOP_DoMethod(o, &msg.mID);
32 static inline void composer_UpdateBitMap(OOP_Object *o, OOP_Object *bitmap, UWORD x, UWORD y, UWORD w, UWORD h, struct GfxBase *GfxBase)
34 struct pHidd_Compositing_BitMapRectChanged msg =
36 mID : PrivGBase(GfxBase)->HiddCompositingMethodBase + moHidd_Compositing_BitMapRectChanged,
37 bm : bitmap,
38 x : x,
39 y : y,
40 width : w,
41 height : h
44 OOP_DoMethod(o, &msg.mID);
47 /* Service functions defined in compositing_driver.c */
49 ULONG composer_Install(OOP_Class *cl, struct GfxBase *GfxBase);
50 void composer_Setup(struct monitor_driverdata *mdd, struct GfxBase *GfxBase);