Fixed invalid memory access in DGA video driver (thanks ldb!)
authorSam Lantinga <slouken@libsdl.org>
Wed, 11 Dec 2002 05:52:28 +0000
changeset 559b528214c8c9a
parent 558 2312d983e1fe
child 560 37c31c12eb70
Fixed invalid memory access in DGA video driver (thanks ldb!)
src/video/dga/SDL_dgavideo.c
     1.1 --- a/src/video/dga/SDL_dgavideo.c	Wed Dec 11 05:47:32 2002 +0000
     1.2 +++ b/src/video/dga/SDL_dgavideo.c	Wed Dec 11 05:52:28 2002 +0000
     1.3 @@ -474,7 +474,7 @@
     1.4  		SDL_SetError("Unable to switch to requested mode");
     1.5  		return(NULL);
     1.6  	}
     1.7 -	DGA_visualClass = modes[i].visualClass;
     1.8 +	DGA_visualClass = mode->mode.visualClass;
     1.9  	memory_base = (Uint8 *)mode->data;
    1.10  	memory_pitch = mode->mode.bytesPerScanline;
    1.11