mirror of
https://github.com/yawut/SDL.git
synced 2026-06-22 20:39:55 -05:00
Fixed invalid memory access in DGA video driver (thanks ldb!)
This commit is contained in:
parent
6c06857010
commit
fa194129e8
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user