use namespace Common a bit more; don't zero the RNG in scumm (else the seed gets reset); remove obsolete 256 color blending code
svn-id: r10592
This commit is contained in:
parent
91da08e1f3
commit
d4734bd4f2
14 changed files with 65 additions and 137 deletions
|
@ -239,7 +239,7 @@ void OSystem_SDL::hotswap_gfx_mode() {
|
|||
void OSystem_SDL::update_screen() {
|
||||
assert(_hwscreen != NULL);
|
||||
|
||||
StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
Common::StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
|
||||
// If the shake position changed, fill the dirty area with blackness
|
||||
if (_currentShakePos != _newShakePos) {
|
||||
|
@ -369,7 +369,7 @@ void OSystem_SDL::update_screen() {
|
|||
|
||||
uint32 OSystem_SDL::property(int param, Property *value) {
|
||||
|
||||
StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
Common::StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
|
||||
if (param == PROP_TOGGLE_FULLSCREEN) {
|
||||
assert(_hwscreen != 0);
|
||||
|
@ -408,7 +408,7 @@ uint32 OSystem_SDL::property(int param, Property *value) {
|
|||
bool OSystem_SDL::save_screenshot(const char *filename) {
|
||||
assert(_hwscreen != NULL);
|
||||
|
||||
StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
Common::StackLock lock(_graphicsMutex, this); // Lock the mutex until this function ends
|
||||
SDL_SaveBMP(_hwscreen, filename);
|
||||
return true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue