Svgalib in 640x480x16 mode ??

Search this archive.

From: Alfred Glass (esr-rohmann@t-online.de)
Date: Wed 16 Jun 1999 - 10:31:31 IDT


Hello,
I will use svgalib for my application. In this moment I use 320x200x256
mode. But for my final application I need 640x480x16 or 640x480x256.

When I change to this mode, I will get an svgalib-error.

                            svgalib: Signal 11: Segmantation fault
received.

  >>>>>>You know why ???

If you know, please answer me under glass@rohmann.de .

Greetings,
Alfred Glass



#include <vga.h>
#include <vgagl.h>
/*#define XMAX          640
#define YMAX            480
# define VMODE         G640x480x16 */
#define XMAX            320
#define YMAX           200
#define VMODE         G320x200x256

GraphicsContext physicalscreen;

void main(void){
   vga_init();

   vga_setmode(VMODE);
   gl_setcontextvga(VMODE);

   gl_getcontext(&physicalscreen);
   gl_setcontext(&physicalscreen);

   vga_drawline(10,10,100,100);

   gl_line(10,20,100,110,8);   /* here starts the error message */

   getchar();

   vga_setmode(TEXT);
}


This archive was generated by hypermail 2.1.4 : Wed 21 Jan 2004 - 22:10:22 IST