re-enable atomic access to transfermode/command for bcm2835 sd controller, and tidy...
[AROS.git] / rom / intuition / itexticlass.c
blobfcacc637e549b0fa29084562d3acbd3c9fbd06d9
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
5 */
7 /****************************************************************************/
9 #include <exec/types.h>
11 #include <dos/dos.h>
12 #include <dos/dosextens.h>
14 #include <intuition/intuition.h>
15 #include <intuition/intuitionbase.h>
16 #include <intuition/classes.h>
17 #include <intuition/classusr.h>
18 #include <intuition/gadgetclass.h>
19 #include <intuition/cghooks.h>
20 #include <intuition/icclass.h>
21 #include <intuition/imageclass.h>
23 #include <graphics/gfxbase.h>
24 #include <graphics/gfxmacros.h>
26 #include <utility/tagitem.h>
27 #include <utility/hooks.h>
29 #include <clib/macros.h>
31 #include <proto/exec.h>
32 #include <proto/intuition.h>
33 #include <proto/graphics.h>
34 #include <proto/utility.h>
36 #include <string.h>
38 #ifndef __MORPHOS__
39 #include "intuition_intern.h"
40 #include <aros/asmcall.h>
41 #include <proto/alib.h>
42 #include "gadgets.h"
43 #endif /* !__MORPHOS__ */
45 /****************************************************************************/
47 IPTR ITextIClass__IM_DRAW(Class *cl, struct Image *im, struct impDraw *msg)
49 struct IntuitionBase *IntuitionBase = (struct IntuitionBase *)cl->cl_UserData;
50 struct GfxBase *GfxBase = GetPrivIBase(IntuitionBase)->GfxBase;
51 struct RastPort *rp = msg->imp_RPort;
52 IPTR retval = (IPTR)0;
54 if (rp)
56 struct IntuiText *iText = (struct IntuiText *)im->ImageData;
57 int leftOffset = msg->imp_Offset.X + im->LeftEdge;
58 int topOffset = msg->imp_Offset.Y + im->TopEdge;
60 SetABPenDrMd(rp, im->PlanePick, 0 ,JAM1);
62 int_PrintIText(rp, iText, leftOffset, topOffset, TRUE, IntuitionBase);
64 retval = (IPTR)1;
67 return retval;
70 // FIXME: ITextIClass::IM_DRAWFRAME not implemented