Commit a31f0acb authored by Sam Lantinga's avatar Sam Lantinga

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

--HG--
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40560
parent faab4adb
...@@ -474,7 +474,7 @@ SDL_Surface *DGA_SetVideoMode(_THIS, SDL_Surface *current, ...@@ -474,7 +474,7 @@ SDL_Surface *DGA_SetVideoMode(_THIS, SDL_Surface *current,
SDL_SetError("Unable to switch to requested mode"); SDL_SetError("Unable to switch to requested mode");
return(NULL); return(NULL);
} }
DGA_visualClass = modes[i].visualClass; DGA_visualClass = mode->mode.visualClass;
memory_base = (Uint8 *)mode->data; memory_base = (Uint8 *)mode->data;
memory_pitch = mode->mode.bytesPerScanline; memory_pitch = mode->mode.bytesPerScanline;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment