Skip to content
Permalink
Browse files

Fixed invalid memory access in DGA video driver (thanks ldb!)

  • Loading branch information
slouken committed Dec 11, 2002
1 parent 468715b commit b408135840504630aaf12d6e4f229eca1b6afd86
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/video/dga/SDL_dgavideo.c
@@ -474,7 +474,7 @@ SDL_Surface *DGA_SetVideoMode(_THIS, SDL_Surface *current,
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;

0 comments on commit b408135

Please sign in to comment.