1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 13:27:34 +00:00

Ports: Update scummvm's patches to use git patches

This commit is contained in:
Ali Mohammad Pur 2022-05-16 23:36:55 +04:30 committed by Ali Mohammad Pur
parent 0068f7f764
commit 06f9a1bacc
5 changed files with 80 additions and 30 deletions

View file

@ -0,0 +1,37 @@
From ddb49b8e7be62501eeea15941b47b91902f697f8 Mon Sep 17 00:00:00 2001
From: Jelle Raaijmakers <jelle@gmta.nl>
Date: Sun, 9 Jan 2022 23:18:02 +0100
Subject: [PATCH 3/3] Remove SDL timer lock
---
backends/timer/sdl/sdl-timer.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/backends/timer/sdl/sdl-timer.cpp b/backends/timer/sdl/sdl-timer.cpp
index f9d79ac..ce1af0e 100644
--- a/backends/timer/sdl/sdl-timer.cpp
+++ b/backends/timer/sdl/sdl-timer.cpp
@@ -29,11 +29,7 @@
#include "common/textconsole.h"
-OSystem::MutexRef timerMutex;
-
static Uint32 timer_handler(Uint32 interval, void *param) {
- Common::StackLock lock(timerMutex);
-
((DefaultTimerManager *)param)->handler();
return interval;
}
@@ -49,8 +45,6 @@ SdlTimerManager::SdlTimerManager() {
}
SdlTimerManager::~SdlTimerManager() {
- Common::StackLock lock(timerMutex);
-
// Removes the timer callback
SDL_RemoveTimer(_timerID);
--
2.36.1