12 #ifdef PLD_linuxvga // Only compile for Linux + Vgalib 1.2
19 PLDLLIMPEXP_DRIVER const char* plD_DEVICE_INFO_linuxvga =
"linuxvga:Linux VGA driver:0:linuxvga:8:vga\n";
25 void plD_line_vga(
PLStream *,
short,
short,
short,
short );
33 static void lxvga_text(
PLStream *pls );
34 static void lxvga_graph(
PLStream *pls );
35 static void lxvga_pause(
PLStream *pls );
37 static PLINT vgax = 639;
38 static PLINT vgay = 479;
43 #define GRAPHICS_MODE 1
50 static int totcol = 16;
59 #ifndef ENABLE_DYNDRIVERS
94 if ( vga_hasmode( mode ) )
98 printf(
"Error: Video mode not supported by graphics card\n" );
104 vgax = vga_getxdim() - 1;
105 vgay = vga_getydim() - 1;
107 totcol = vga_getcolors();
120 plD_line_vga(
PLStream *pls,
short x1a,
short y1a,
short x2a,
short y2a )
122 int x1 = x1a, y1 = y1a, x2 = x2a, y2 = y2a;
127 vga_drawline( x1, y1, x2, y2 );
139 plD_polyline_vga(
PLStream *pls,
short *xa,
short *ya,
PLINT npts )
143 for ( i = 0; i < npts - 1; i++ )
144 plD_line_vga( pls, xa[i], ya[i], xa[i + 1], ya[i + 1] );
156 if ( page_state == DIRTY )
211 col = ( pls->
icol0 ) % totcol;
254 if ( page_state == DIRTY )
300 #endif // PLD_linuxvga