Mercurial > sdl-ios-xcode
diff src/video/dga/SDL_dgavideo.c @ 559:b528214c8c9a
Fixed invalid memory access in DGA video driver (thanks ldb!)
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Wed, 11 Dec 2002 05:52:28 +0000 |
parents | 4bcfb93e0dfe |
children | b8d311d90021 |
line wrap: on
line diff
--- a/src/video/dga/SDL_dgavideo.c Wed Dec 11 05:47:32 2002 +0000 +++ b/src/video/dga/SDL_dgavideo.c Wed Dec 11 05:52:28 2002 +0000 @@ -474,7 +474,7 @@ SDL_SetError("Unable to switch to requested mode"); return(NULL); } - DGA_visualClass = modes[i].visualClass; + DGA_visualClass = mode->mode.visualClass; memory_base = (Uint8 *)mode->data; memory_pitch = mode->mode.bytesPerScanline;