From cee4d6b8531453c9db921bb987be88995ce86586 Mon Sep 17 00:00:00 2001 From: Adrian Frühwirth Date: Tue, 22 May 2018 16:03:56 +0200 Subject: JANITORIAL: Fix trailing whitespace --- backends/graphics/psp2sdl/psp2sdl-graphics.cpp | 2 +- backends/platform/androidsdl/androidsdl-sdl.cpp | 8 ++++---- backends/platform/ios7/ios7_osys_main.h | 2 +- backends/platform/psp/input.cpp | 2 +- backends/platform/sdl/psp2/psp2-main.cpp | 4 ++-- backends/platform/sdl/psp2/psp2.cpp | 8 ++++---- backends/platform/sdl/riscos/riscos-main.cpp | 2 +- backends/platform/wii/osystem_events.cpp | 2 +- 8 files changed, 15 insertions(+), 15 deletions(-) (limited to 'backends') diff --git a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp index 222cf0c6ef..5e6afc2a57 100644 --- a/backends/graphics/psp2sdl/psp2sdl-graphics.cpp +++ b/backends/graphics/psp2sdl/psp2sdl-graphics.cpp @@ -238,7 +238,7 @@ void PSP2SdlGraphicsManager::setAspectRatioCorrection(bool enable) { SDL_Surface *PSP2SdlGraphicsManager::SDL_SetVideoMode(int width, int height, int bpp, Uint32 flags) { SDL_Surface *screen = SurfaceSdlGraphicsManager::SDL_SetVideoMode(width, height, bpp, flags); - + if (screen != nullptr) { vita2d_set_vblank_wait(true); _vitatex_hwscreen = vita2d_create_empty_texture_format(width, height, SCE_GXM_TEXTURE_FORMAT_R5G6B5); diff --git a/backends/platform/androidsdl/androidsdl-sdl.cpp b/backends/platform/androidsdl/androidsdl-sdl.cpp index 697acca4d6..2ed644ecb2 100644 --- a/backends/platform/androidsdl/androidsdl-sdl.cpp +++ b/backends/platform/androidsdl/androidsdl-sdl.cpp @@ -44,18 +44,18 @@ void OSystem_ANDROIDSDL::initBackend() { if (!ConfMan.hasKey("gfx_mode")) ConfMan.set("gfx_mode", "2x"); - + if (!ConfMan.hasKey("swap_menu_and_back_buttons")) ConfMan.setBool("swap_menu_and_back_buttons", true); else swapMenuAndBackButtons(ConfMan.getBool("swap_menu_and_back_buttons")); - + if (!ConfMan.hasKey("touchpad_mouse_mode")) { const bool enable = SDL_ANDROID_GetMouseEmulationMode(); ConfMan.setBool("touchpad_mouse_mode", enable); } else touchpadMode(ConfMan.getBool("touchpad_mouse_mode")); - + if (!ConfMan.hasKey("onscreen_control")) { const bool enable = SDL_ANDROID_GetScreenKeyboardShown(); ConfMan.setBool("onscreen_control", enable); @@ -115,7 +115,7 @@ void OSystem_ANDROIDSDL::setFeatureState(Feature f, bool enable) { swapMenuAndBackButtons(enable); break; } - + OSystem_POSIX::setFeatureState(f, enable); } diff --git a/backends/platform/ios7/ios7_osys_main.h b/backends/platform/ios7/ios7_osys_main.h index e0ac599b1d..9b9d2bdee0 100644 --- a/backends/platform/ios7/ios7_osys_main.h +++ b/backends/platform/ios7/ios7_osys_main.h @@ -123,7 +123,7 @@ public: static OSystem_iOS7 *sharedInstance(); virtual void initBackend(); - + virtual void engineInit(); virtual void engineDone(); diff --git a/backends/platform/psp/input.cpp b/backends/platform/psp/input.cpp index 7a2047f28e..8e5f170a7d 100644 --- a/backends/platform/psp/input.cpp +++ b/backends/platform/psp/input.cpp @@ -336,7 +336,7 @@ bool Nub::getEvent(Common::Event &event, PspEvent &pspEvent, SceCtrlData &pad) { // keep track of remainder for true sub-pixel cursor position _hiresX %= 1024; _hiresY %= 1024; - + int32 oldX = _cursor->getX(); int32 oldY = _cursor->getY(); diff --git a/backends/platform/sdl/psp2/psp2-main.cpp b/backends/platform/sdl/psp2/psp2-main.cpp index 0bdf0b34bc..70cc52388e 100644 --- a/backends/platform/sdl/psp2/psp2-main.cpp +++ b/backends/platform/sdl/psp2/psp2-main.cpp @@ -40,7 +40,7 @@ int main(int argc, char *argv[]) { scePowerSetBusClockFrequency(222); scePowerSetGpuClockFrequency(222); scePowerSetGpuXbarClockFrequency(166); - + // Create our OSystem instance g_system = new OSystem_PSP2(); assert(g_system); @@ -57,7 +57,7 @@ int main(int argc, char *argv[]) { // Free OSystem delete (OSystem_PSP2 *)g_system; - + #ifdef __PSP2_DEBUG__ psp2shell_exit(); #endif diff --git a/backends/platform/sdl/psp2/psp2.cpp b/backends/platform/sdl/psp2/psp2.cpp index 3034b6d886..80604a69d5 100644 --- a/backends/platform/sdl/psp2/psp2.cpp +++ b/backends/platform/sdl/psp2/psp2.cpp @@ -55,11 +55,11 @@ OSystem_PSP2::OSystem_PSP2(Common::String baseConfigName) } void OSystem_PSP2::init() { - + #if __PSP2_DEBUG__ gDebugLevel = 3; #endif - + // Initialze File System Factory sceIoMkdir("ux0:data", 0755); sceIoMkdir("ux0:data/scummvm", 0755); @@ -71,7 +71,7 @@ void OSystem_PSP2::init() { } void OSystem_PSP2::initBackend() { - + ConfMan.set("joystick_num", 0); ConfMan.registerDefault("fullscreen", true); ConfMan.registerDefault("aspect_ratio", false); @@ -105,7 +105,7 @@ void OSystem_PSP2::initBackend() { ConfMan.setBool("frontpanel_touchpad_mode", false); } - + // Create the savefile manager if (_savefileManager == 0) _savefileManager = new DefaultSaveFileManager("ux0:data/scummvm/saves"); diff --git a/backends/platform/sdl/riscos/riscos-main.cpp b/backends/platform/sdl/riscos/riscos-main.cpp index 2ff8294c1a..3f7058e3b8 100644 --- a/backends/platform/sdl/riscos/riscos-main.cpp +++ b/backends/platform/sdl/riscos/riscos-main.cpp @@ -29,7 +29,7 @@ #include "base/main.h" int main(int argc, char *argv[]) { - + // Create our OSystem instance g_system = new OSystem_RISCOS(); assert(g_system); diff --git a/backends/platform/wii/osystem_events.cpp b/backends/platform/wii/osystem_events.cpp index 2499300a56..ae9c27f03b 100644 --- a/backends/platform/wii/osystem_events.cpp +++ b/backends/platform/wii/osystem_events.cpp @@ -228,7 +228,7 @@ bool OSystem_Wii::pollKeyboard(Common::Event &event) { keyboard_event kbdEvent; s32 res = KEYBOARD_GetEvent(&kbdEvent); - + if (!res) return false; -- cgit v1.2.3