1 /**
2 ** upfflood.c ---- pattern fill an arbitrary area in user coordinates
3 **
4 ** Copyright (c) 1997 Hartmut Schirmer
5 ** [e-mail: hsc@techfak.uni-kiel.de]
6 **
7 ** This file is part of the GRX graphics library.
8 **
9 ** The GRX graphics library is free software; you can redistribute it
10 ** and/or modify it under some conditions; see the "copying.grx" file
11 ** for details.
12 **
13 ** This library is distributed in the hope that it will be useful,
14 ** but WITHOUT ANY WARRANTY; without even the implied warranty of
15 ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16 **
17 **/
18
19 #include "libgrx.h"
20 #include "usercord.h"
21
GrUsrPatternFloodFill(int x,int y,GrColor border,GrPattern * p)22 void GrUsrPatternFloodFill(int x, int y, GrColor border, GrPattern *p)
23 {
24 U2SX(x,CURC);
25 U2SY(y,CURC);
26 GrPatternFloodFill(x,y,border,p);
27 }
28