MAEMO: Add basic graphics manager
This is necessary for bugfix#3443037
(cherry picked from commit 29c0386f2c
)
This commit is contained in:
parent
72ea513563
commit
34654c6304
4 changed files with 77 additions and 1 deletions
34
backends/graphics/maemosdl/maemosdl-graphics.cpp
Normal file
34
backends/graphics/maemosdl/maemosdl-graphics.cpp
Normal file
|
@ -0,0 +1,34 @@
|
|||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
*/
|
||||
#if defined(MAEMO)
|
||||
|
||||
#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)
|
||||
: SurfaceSdlGraphicsManager(sdlEventSource) {
|
||||
}
|
||||
|
||||
#endif
|
37
backends/graphics/maemosdl/maemosdl-graphics.h
Normal file
37
backends/graphics/maemosdl/maemosdl-graphics.h
Normal file
|
@ -0,0 +1,37 @@
|
|||
/* ScummVM - Graphic Adventure Engine
|
||||
*
|
||||
* ScummVM is the legal property of its developers, whose names
|
||||
* are too numerous to list here. Please refer to the COPYRIGHT
|
||||
* file distributed with this source distribution.
|
||||
*
|
||||
* This program is free software; you can redistribute it and/or
|
||||
* modify it under the terms of the GNU General Public License
|
||||
* as published by the Free Software Foundation; either version 2
|
||||
* of the License, or (at your option) any later version.
|
||||
|
||||
* This program is distributed in the hope that it will be useful,
|
||||
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
* GNU General Public License for more details.
|
||||
|
||||
* You should have received a copy of the GNU General Public License
|
||||
* along with this program; if not, write to the Free Software
|
||||
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*
|
||||
*/
|
||||
|
||||
#if defined(MAEMO)
|
||||
|
||||
#ifndef BACKENDS_GRAPHICS_MAEMOSDL_GRAPHICS_H
|
||||
#define BACKENDS_GRAPHICS_MAEMOSDL_GRAPHICS_H
|
||||
|
||||
#include "backends/graphics/surfacesdl/surfacesdl-graphics.h"
|
||||
|
||||
class MaemoSdlGraphicsManager : public SurfaceSdlGraphicsManager {
|
||||
public:
|
||||
MaemoSdlGraphicsManager(SdlEventSource *sdlEventSource);
|
||||
};
|
||||
|
||||
#endif
|
||||
|
||||
#endif
|
|
@ -149,7 +149,8 @@ endif
|
|||
|
||||
ifeq ($(BACKEND),maemo)
|
||||
MODULE_OBJS += \
|
||||
events/maemosdl/maemosdl-events.o
|
||||
events/maemosdl/maemosdl-events.o \
|
||||
graphics/maemosdl/maemosdl-graphics.o
|
||||
endif
|
||||
|
||||
ifeq ($(BACKEND),n64)
|
||||
|
|
|
@ -29,6 +29,7 @@
|
|||
|
||||
#include "backends/platform/maemo/maemo.h"
|
||||
#include "backends/events/maemosdl/maemosdl-events.h"
|
||||
#include "backends/graphics/maemosdl/maemosdl-graphics.h"
|
||||
#include "common/textconsole.h"
|
||||
|
||||
|
||||
|
@ -47,6 +48,9 @@ void OSystem_SDL_Maemo::initBackend() {
|
|||
if (_eventSource == 0)
|
||||
_eventSource = new MaemoSdlEventSource();
|
||||
|
||||
if (_graphicsManager == 0)
|
||||
_graphicsManager = new MaemoSdlGraphicsManager(_eventSource);
|
||||
|
||||
ConfMan.set("vkeybdpath", DATA_PATH);
|
||||
|
||||
_model = Model(detectModel());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue