1 /**
2 ** majorln1.c ---- lines parallel with the X axis
3 **
4 ** Copyright (c) 1995 Csaba Biegl, 820 Stirrup Dr, Nashville, TN 37221
5 ** [e-mail: csaba@vuse.vanderbilt.edu].
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 "clipping.h"
21
GrHLine(int x1,int x2,int yy,GrColor c)22 void GrHLine(int x1,int x2,int yy,GrColor c)
23 {
24 clip_hline(CURC,x1,x2,yy);
25 mouse_block(CURC,x1,yy,x2,yy);
26 (*FDRV->drawhline)(
27 x1 + CURC->gc_xoffset,
28 yy + CURC->gc_yoffset,
29 x2 - x1 + 1,
30 c
31 );
32 mouse_unblock();
33 }
34