diff -Naur mind_v13-orig/dem/src/demo.c mind_v13/dem/src/demo.c --- mind_v13-orig/dem/src/demo.c 2002-12-18 05:38:30.000000000 -0200 +++ mind_v13/dem/src/demo.c 2006-03-31 15:54:32.355711552 -0300 @@ -169,7 +169,7 @@ #else -#ifndef USE_SVGA_LIB +#ifndef USE_SVGALIB #define _G_SVGL_DRIVER_ 0 #endif diff -Naur mind_v13-orig/lib_src/driver.c mind_v13/lib_src/driver.c --- mind_v13-orig/lib_src/driver.c 2000-04-13 04:41:56.000000000 -0300 +++ mind_v13/lib_src/driver.c 2006-03-31 15:56:04.873646688 -0300 @@ -3,6 +3,7 @@ * Skal 96 * ***********************************************/ +#include #include "main.h" #include "mem_map.h" #include "driver.h" diff -Naur mind_v13-orig/lib_src/drv_svgl.c mind_v13/lib_src/drv_svgl.c --- mind_v13-orig/lib_src/drv_svgl.c 2000-02-24 13:35:08.000000000 -0200 +++ mind_v13/lib_src/drv_svgl.c 2006-03-31 15:58:39.620121648 -0300 @@ -35,7 +35,7 @@ SVGL->Cur_Req_Mode = 0; SVGL->Cleanup_Mode = NULL; - if ( SVGL->The_SVGA_Context != ( Window )NULL ) + if ( SVGL->The_SVGA_Context != NULL ) { gl_freecontext( SVGL->The_SVGA_Context ); gl_freecontext( SVGL->The_Virtual_Context ); @@ -300,7 +300,7 @@ Cur->Width = Mode_Info->width; Cur->Height = Mode_Info->height; Cur->Pad = _INT_10h_; // Always ok ?? - Cur->BpS = Mode_Info->maxlogicalwidth; + Cur->BpS = Mode_Info->linewidth; if ( iPad |= _VGA_MODE_; if ( Mode_Info->flags & CAPABLE_LINEAR ) // Linear capable Cur->Pad |= _SPEC_LFB_; @@ -415,6 +415,7 @@ SET_DRV_ERR( "SVGALIB, Help !" ); #endif + return( 0 ); Mode_Ok: @@ -446,8 +447,6 @@ gl_getcontext( SVGL->The_SVGA_Context ); gl_disableclipping( ); - graph_mem = vga_getgraphmem( ); - vga_setpage( 0 ); // gl_clearscreen( 0 ); if ( SVGL->The_Display.Pad & _SPEC_LFB_ ) @@ -466,6 +465,9 @@ gl_setcontext( SVGL->The_Virtual_Context ); } + graph_mem = vga_getgraphmem( ); + vga_setpage( 0 ); + SVGL->Dst = NULL; SVGL->The_Display.Base_Ptr = graph_mem;