1 /**
2  ** epatstrg.c ---- extended patterned draw character string
3  **
4  ** Copyright (c) 1998 Hartmut Schirmer
5  ** Copyright (c) 1995 Csaba Biegl, 820 Stirrup Dr, Nashville, TN 37221
6  ** [e-mail: csaba@vuse.vanderbilt.edu]
7  **
8  ** This file is part of the GRX graphics library.
9  **
10  ** The GRX graphics library is free software; you can redistribute it
11  ** and/or modify it under some conditions; see the "copying.grx" file
12  ** for details.
13  **
14  ** This library is distributed in the hope that it will be useful,
15  ** but WITHOUT ANY WARRANTY; without even the implied warranty of
16  ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
17  **
18  **/
19 
20 #include "libgrx.h"
21 #include "clipping.h"
22 #include "shapes.h"
23 #include "text/text.h"
24 
ExtPatternFilledBmp(int x,int y,int w,int h,int ox,int oy,char far * bmp,int pitch,int start,GrColor fg,GrColor bg,GrPattern * p)25 static void ExtPatternFilledBmp(int x,int y,int w,int h,int ox, int oy,
26 				char far *bmp,int pitch,int start,
27 				GrColor fg,GrColor bg,GrPattern *p)
28 {
29   GRX_ENTER();
30   _GrFillBitmapPatternExt(x,y,w,h,ox,oy,bmp,pitch,start,p,bg);
31   GRX_LEAVE();
32 }
33 
GrPatternDrawStringExt(void * text,int length,int x,int y,const GrTextOption * opt,GrPattern * p)34 void GrPatternDrawStringExt(void *text,int length,int x,int y,
35 			       const GrTextOption *opt,GrPattern *p)
36 {
37   GRX_ENTER();
38   _GrDrawString(text,length,x,y,opt,p,ExtPatternFilledBmp);
39   GRX_LEAVE();
40 }
41