Skip to content

Commit

Permalink
Fixed invalid memory access in DGA video driver (thanks ldb!)
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Dec 11, 2002
1 parent 468715b commit b408135
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/video/dga/SDL_dgavideo.c
Expand Up @@ -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;

Expand Down

0 comments on commit b408135

Please sign in to comment.