[Scummvm-git-logs] scummvm master -> 6e690c5a8b73c33b64d38c04eac7732ed193de9a

tsoliman tarek at bashasoliman.com
Mon Jul 8 18:11:51 CEST 2019


This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .

Summary:
6e690c5a8b MAEMO: Minor cleanup


Commit: 6e690c5a8b73c33b64d38c04eac7732ed193de9a
    https://github.com/scummvm/scummvm/commit/6e690c5a8b73c33b64d38c04eac7732ed193de9a
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2019-07-08T11:11:45-05:00

Commit Message:
MAEMO: Minor cleanup

Changed paths:
    backends/events/maemosdl/maemosdl-events.cpp
    backends/events/maemosdl/maemosdl-events.h
    backends/graphics/maemosdl/maemosdl-graphics.cpp
    backends/platform/maemo/maemo.cpp
    backends/platform/maemo/main.cpp


diff --git a/backends/events/maemosdl/maemosdl-events.cpp b/backends/events/maemosdl/maemosdl-events.cpp
index e864c7d..13677a6 100644
--- a/backends/events/maemosdl/maemosdl-events.cpp
+++ b/backends/events/maemosdl/maemosdl-events.cpp
@@ -25,6 +25,7 @@
 #include "common/scummsys.h"
 
 #include "backends/events/maemosdl/maemosdl-events.h"
+#include "backends/platform/maemo/maemo.h"
 #include "common/translation.h"
 
 namespace Maemo {
diff --git a/backends/events/maemosdl/maemosdl-events.h b/backends/events/maemosdl/maemosdl-events.h
index 6024031..d2df05a 100644
--- a/backends/events/maemosdl/maemosdl-events.h
+++ b/backends/events/maemosdl/maemosdl-events.h
@@ -26,8 +26,6 @@
 #define BACKEND_EVENTS_SDL_MAEMO_H
 
 #include "backends/events/sdl/sdl-events.h"
-#include "backends/platform/maemo/maemo.h"
-#include "backends/graphics/surfacesdl/surfacesdl-graphics.h"
 
 namespace Maemo {
 
diff --git a/backends/graphics/maemosdl/maemosdl-graphics.cpp b/backends/graphics/maemosdl/maemosdl-graphics.cpp
index d954333..588e725 100644
--- a/backends/graphics/maemosdl/maemosdl-graphics.cpp
+++ b/backends/graphics/maemosdl/maemosdl-graphics.cpp
@@ -24,7 +24,6 @@
 #include "common/scummsys.h"
 
 #include "backends/platform/maemo/maemo.h"
-#include "backends/events/maemosdl/maemosdl-events.h"
 #include "backends/graphics/maemosdl/maemosdl-graphics.h"
 
 MaemoSdlGraphicsManager::MaemoSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window)
@@ -36,8 +35,7 @@ bool MaemoSdlGraphicsManager::loadGFXMode() {
 
 	// fix the problematic zoom key capture in Maemo5/N900
 	SDL_SysWMinfo info;
-	SDL_VERSION(&info.version);
-	if (SDL_GetWMInfo(&info)) {
+	if (_window->getSDLWMInformation(&info)) {
 		Display *dpy = info.info.x11.display;
 		Window win;
 		unsigned long val = 1;
diff --git a/backends/platform/maemo/maemo.cpp b/backends/platform/maemo/maemo.cpp
index 326c35a..836102e 100644
--- a/backends/platform/maemo/maemo.cpp
+++ b/backends/platform/maemo/maemo.cpp
@@ -129,8 +129,7 @@ void OSystem_SDL_Maemo::fatalError() {
 
 void OSystem_SDL_Maemo::setXWindowName(const char *caption) {
 	SDL_SysWMinfo info;
-	SDL_VERSION(&info.version);
-	if (SDL_GetWMInfo(&info)) {
+	if (_window->getSDLWMInformation(&info)) {
 		Display *dpy = info.info.x11.display;
 		Window win;
 		win = info.info.x11.fswindow;
@@ -155,7 +154,7 @@ void OSystem_SDL_Maemo::setWindowCaption(const char *caption) {
 		}
 	}
 
-	SDL_WM_SetCaption(cap.c_str(), cap.c_str());
+	_window->setWindowCaption(cap);
 
 	Common::String cap2("ScummVM - "); // 2 lines in OS2008 task switcher, set first line
 	cap = cap2 + cap;
diff --git a/backends/platform/maemo/main.cpp b/backends/platform/maemo/main.cpp
index 9d8b0f2..72253bb 100644
--- a/backends/platform/maemo/main.cpp
+++ b/backends/platform/maemo/main.cpp
@@ -22,14 +22,10 @@
 
 #if defined(MAEMO)
 
-#define FORBIDDEN_SYMBOL_EXCEPTION_unistd_h
-
 #include "backends/platform/maemo/maemo.h"
 #include "backends/plugins/sdl/sdl-provider.h"
 #include "base/main.h"
 
-#include <unistd.h>
-
 int main(int argc, char* argv[]) {
 	g_system = new Maemo::OSystem_SDL_Maemo();
 	assert(g_system);





More information about the Scummvm-git-logs mailing list