some fixes to accented characters
[tangerine.git] / rom / intuition / itexticlass.c
blob2ce55af85e7ffd55424c7d7ae45f1a9c69a6687b
1 /*
2 Copyright © 1995-2005, 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 #undef IntuitionBase
48 #define IntuitionBase ((struct IntuitionBase *)(cl->cl_UserData))
50 /****************************************************************************/
52 IPTR ITextIClass__IM_DRAW(Class *cl, struct Image *im, struct impDraw *msg)
54 struct RastPort *rp = msg->imp_RPort;
55 IPTR retval = (IPTR)0;
57 if (rp)
59 struct IntuiText *iText = (struct IntuiText *)im->ImageData;
60 int leftOffset = msg->imp_Offset.X + im->LeftEdge;
61 int topOffset = msg->imp_Offset.Y + im->TopEdge;
63 SetABPenDrMd(rp, im->PlanePick, 0 ,JAM1);
65 int_PrintIText(rp, iText, leftOffset, topOffset, TRUE, IntuitionBase);
67 retval = (IPTR)1;
70 return retval;
73 #warning ITextIClass::IM_DRAWFRAME not implemented