aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorvanfanel2015-11-12 14:03:14 +0100
committervanfanel2015-11-12 14:03:14 +0100
commit9d831d0c428df4f21272a3b7df2d1016f657b63f (patch)
tree645fc04e0cc903b9888605f6a0559ec03b8d4510
parent99739a13fe844c807d3cdd87e67e207e888fd48a (diff)
downloadscummvm-rg350-9d831d0c428df4f21272a3b7df2d1016f657b63f.tar.gz
scummvm-rg350-9d831d0c428df4f21272a3b7df2d1016f657b63f.tar.bz2
scummvm-rg350-9d831d0c428df4f21272a3b7df2d1016f657b63f.zip
SDL/DISPMANX Fixed small issues with merging: Use append_var, fix spacing issues and changed SurfaceSdlGraphicsManager constructor call parameters on DispmanXSdlGraphicsManager constructor.
-rw-r--r--backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp4
-rw-r--r--backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h2
-rw-r--r--backends/platform/sdl/raspberrypi/raspberrypi.cpp2
-rwxr-xr-xconfigure28
4 files changed, 18 insertions, 18 deletions
diff --git a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp
index 7e208db4b7..3da536be2b 100644
--- a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp
+++ b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.cpp
@@ -76,8 +76,8 @@ struct dispmanxPage {
struct dispvarsStruct *dispvars;
};
-DispmanXSdlGraphicsManager::DispmanXSdlGraphicsManager(SdlEventSource *sdlEventSource)
- : SurfaceSdlGraphicsManager(sdlEventSource) {
+DispmanXSdlGraphicsManager::DispmanXSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window)
+ : SurfaceSdlGraphicsManager(sdlEventSource, window) {
_dispvars = new(dispvarsStruct);
dispmanXInit();
}
diff --git a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h
index 1866ec14a2..6a2ede2383 100644
--- a/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h
+++ b/backends/graphics/dispmanxsdl/dispmanxsdl-graphics.h
@@ -30,7 +30,7 @@ struct dispmanxPage;
class DispmanXSdlGraphicsManager : public SurfaceSdlGraphicsManager {
public:
- DispmanXSdlGraphicsManager(SdlEventSource *sdlEventSource);
+ DispmanXSdlGraphicsManager(SdlEventSource *sdlEventSource, SdlWindow *window);
~DispmanXSdlGraphicsManager();
bool loadGFXMode();
void internUpdateScreen();
diff --git a/backends/platform/sdl/raspberrypi/raspberrypi.cpp b/backends/platform/sdl/raspberrypi/raspberrypi.cpp
index a3f79fd5b3..206203d82e 100644
--- a/backends/platform/sdl/raspberrypi/raspberrypi.cpp
+++ b/backends/platform/sdl/raspberrypi/raspberrypi.cpp
@@ -32,7 +32,7 @@ void OSystem_SDL_RaspberryPi::initBackend() {
// Create the graphics manager
if (_graphicsManager == 0) {
- _graphicsManager = new DispmanXSdlGraphicsManager(_eventSource);
+ _graphicsManager = new DispmanXSdlGraphicsManager(_eventSource, _window);
}
// Call parent implementation of this method
diff --git a/configure b/configure
index 99006e4362..ad513e0079 100755
--- a/configure
+++ b/configure
@@ -1061,9 +1061,9 @@ for ac_option in $@; do
--disable-libunity) _libunity=no ;;
--enable-opengl) _opengl=yes ;;
--disable-opengl) _opengl=no ;;
- --enable-dispmanx) _dispmanx=yes ;;
- --disable-dispmanx) _dispmanx=no ;;
- --enable-bink) _bink=yes ;;
+ --enable-dispmanx) _dispmanx=yes ;;
+ --disable-dispmanx) _dispmanx=no ;;
+ --enable-bink) _bink=yes ;;
--disable-bink) _bink=no ;;
--enable-verbose-build) _verbose_build=yes ;;
--enable-plugins) _dynamic_modules=yes ;;
@@ -2576,13 +2576,13 @@ if test -n "$_host"; then
# Be careful as it's the linker (LDFLAGS) which must know about sysroot.
# These are needed to build against Raspbian's libSDL even if we don't activate
# dispmanx support.
- LDFLAGS="$LDFLAGS --sysroot=$RPI_ROOT"
- LDFLAGS="$LDFLAGS -B$RPI_ROOT/usr/lib/arm-linux-gnueabihf"
- LDFLAGS="$LDFLAGS -Xlinker --rpath-link=$RPI_ROOT/usr/lib/arm-linux-gnueabihf"
- LDFLAGS="$LDFLAGS -Xlinker --rpath-link=$RPI_ROOT/lib/arm-linux-gnueabihf"
- LDFLAGS="$LDFLAGS -Xlinker --rpath-link=$RPI_ROOT/opt/vc/lib"
- LDFLAGS="$LDFLAGS -L$RPI_ROOT/opt/vc/lib"
- LDFLAGS="$LDFLAGS -L/opt/rpi_root/lib/arm-linux-gnueabihf -L$RPI_ROOT/usr/lib -L$RPI_ROOT/opt/vc/lib -lbcm_host -lvcos"
+ append_var LDFLAGS "--sysroot=$RPI_ROOT"
+ append_var LDFLAGS "-B$RPI_ROOT/usr/lib/arm-linux-gnueabihf"
+ append_var LDFLAGS "-Xlinker --rpath-link=$RPI_ROOT/usr/lib/arm-linux-gnueabihf"
+ append_var LDFLAGS "-Xlinker --rpath-link=$RPI_ROOT/lib/arm-linux-gnueabihf"
+ append_var LDFLAGS "-Xlinker --rpath-link=$RPI_ROOT/opt/vc/lib"
+ append_var LDFLAGS "-L$RPI_ROOT/opt/vc/lib"
+ append_var LDFLAGS "-L/opt/rpi_root/lib/arm-linux-gnueabihf -L$RPI_ROOT/usr/lib -L$RPI_ROOT/opt/vc/lib -lbcm_host -lvcos"
_savegame_timestamp=no
_eventrec=no
_build_scalers=no
@@ -4112,7 +4112,7 @@ if test "$_dispmanx" = "yes" ; then
# These are only needed if, appart from cross-building for Raspberry Pi,
# we are activating dispmanx support.
- DISPMANX_CXXFLAGS="-I$RPI_ROOT/usr/include/arm-linux-gnueabihf -I$RPI_ROOT/opt/vc/include -I$RPI_ROOT/opt/vc/include/interface/vmcs_host/linux -I$RPI_ROOT/opt/vc/include/interface/vcos/pthreads -I$RPI_ROOT/usr/include/SDL"
+ DISPMANX_CXXFLAGS="-I$RPI_ROOT/usr/include -I$RPI_ROOT/usr/include/arm-linux-gnueabihf -I$RPI_ROOT/opt/vc/include -I$RPI_ROOT/opt/vc/include/interface/vmcs_host/linux -I$RPI_ROOT/opt/vc/include/interface/vcos/pthreads -I$RPI_ROOT/usr/include/SDL"
DISPMANX_LIBS="$RPI_LIBS -L/opt/rpi_root/lib/arm-linux-gnueabihf -L$RPI_ROOT/usr/lib -L$RPI_ROOT/opt/vc/lib -lbcm_host -lvcos -lvchiq_arm"
cat > $TMPC << EOF
@@ -4124,9 +4124,9 @@ if test "$_dispmanx" = "yes" ; then
EOF
cc_check $DISPMANX_CXXFLAGS $DISPMANX_LIBS && _use_dispmanx=yes
if test "$_use_dispmanx" = "yes"; then
- CXXFLAGS="$CXXFLAGS $DISPMANX_CXXFLAGS"
- LIBS="$LIBS $DISPMANX_LIBS"
- DEFINES="$DEFINES -DDISPMANX"
+ append_var CXXFLAGS "$DISPMANX_CXXFLAGS"
+ append_var LIBS "$DISPMANX_LIBS"
+ append_var DEFINES "-DDISPMANX"
add_line_to_config_mk 'DISPMANX = 1'
echo $_use_dispmanx
else echo "no"