14 #ifdef PLD_linuxvga // Only compile for Linux + Vgalib 1.2
21 PLDLLIMPEXP_DRIVER const char* plD_DEVICE_INFO_linuxvga =
"linuxvga:Linux VGA driver:0:linuxvga:8:vga\n";
27 void plD_line_vga(
PLStream *,
short,
short,
short,
short );
35 static void lxvga_text(
PLStream *pls );
36 static void lxvga_graph(
PLStream *pls );
37 static void lxvga_pause(
PLStream *pls );
39 static PLINT vgax = 639;
40 static PLINT vgay = 479;
45 #define GRAPHICS_MODE 1
52 static int totcol = 16;
61 #ifndef ENABLE_DYNDRIVERS
96 if ( vga_hasmode( mode ) )
100 printf(
"Error: Video mode not supported by graphics card\n" );
106 vgax = vga_getxdim() - 1;
107 vgay = vga_getydim() - 1;
109 totcol = vga_getcolors();
122 plD_line_vga(
PLStream *pls,
short x1a,
short y1a,
short x2a,
short y2a )
124 int x1 = x1a, y1 = y1a, x2 = x2a, y2 = y2a;
129 vga_drawline( x1, y1, x2, y2 );
141 plD_polyline_vga(
PLStream *pls,
short *xa,
short *ya,
PLINT npts )
145 for ( i = 0; i < npts - 1; i++ )
146 plD_line_vga( pls, xa[i], ya[i], xa[i + 1], ya[i + 1] );
158 if ( page_state == DIRTY )
213 col = ( pls->
icol0 ) % totcol;
256 if ( page_state == DIRTY )
302 #endif // PLD_linuxvga