1 /**
2 ** majorln2.c ---- lines parallel with the Y 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
GrVLine(int xx,int y1,int y2,GrColor c)22 void GrVLine(int xx,int y1,int y2,GrColor c)
23 {
24 clip_vline(CURC,xx,y1,y2);
25 mouse_block(CURC,xx,y1,xx,y2);
26 (*FDRV->drawvline)(
27 xx + CURC->gc_xoffset,
28 y1 + CURC->gc_yoffset,
29 y2 - y1 + 1,
30 c
31 );
32 mouse_unblock();
33 }
34