diff options
| author | Lioncash <mathew1800@gmail.com> | 2014-11-17 13:51:40 -0500 |
|---|---|---|
| committer | Lioncash <mathew1800@gmail.com> | 2014-11-17 13:51:40 -0500 |
| commit | f78600ec9e3789756fb779e47435efd76125e13d (patch) | |
| tree | b057ff4bbb0a43b328e82d4aca3fc7be67f3b09f /Source/Core/DolphinWX/MainAndroid.cpp | |
| parent | 5fce33f91857e0ae2d551c67fd0971622362783a (diff) | |
| parent | b94dbca160d7a7d0308d4e8d4ff7613f9e6238b1 (diff) | |
Merge pull request #1562 from lioncash/host
Host: Kill off GetRenderWindowSize
Diffstat (limited to 'Source/Core/DolphinWX/MainAndroid.cpp')
| -rw-r--r-- | Source/Core/DolphinWX/MainAndroid.cpp | 15 |
1 files changed, 1 insertions, 14 deletions
diff --git a/Source/Core/DolphinWX/MainAndroid.cpp b/Source/Core/DolphinWX/MainAndroid.cpp index 2189fae5db..273b0c4664 100644 --- a/Source/Core/DolphinWX/MainAndroid.cpp +++ b/Source/Core/DolphinWX/MainAndroid.cpp @@ -48,7 +48,6 @@ #include "VideoCommon/VideoBackendBase.h" ANativeWindow* surf; -int g_width, g_height; std::string g_filename; #define DOLPHIN_TAG "Dolphinemu" @@ -77,14 +76,6 @@ void Host_UpdateMainFrame() { } -void Host_GetRenderWindowSize(int& x, int& y, int& width, int& height) -{ - x = SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowXPos; - y = SConfig::GetInstance().m_LocalCoreStartupParameter.iRenderWindowYPos; - width = g_width; - height = g_height; -} - void Host_RequestRenderWindowSize(int width, int height) {} void Host_RequestFullscreen(bool enable_fullscreen) {} @@ -311,11 +302,6 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetFilename( { g_filename = GetJString(env, jFile); } -JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SetDimensions(JNIEnv *env, jobject obj, jint _width, jint _height) -{ - g_width = (int)_width; - g_height = (int)_height; -} JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_SaveState(JNIEnv *env, jobject obj, jint slot) { @@ -348,6 +334,7 @@ JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_CreateUserFo JNIEXPORT void JNICALL Java_org_dolphinemu_dolphinemu_NativeLibrary_Run(JNIEnv *env, jobject obj, jobject _surf) { surf = ANativeWindow_fromSurface(env, _surf); + // Install our callbacks OSD::AddCallback(OSD::OSD_INIT, ButtonManager::Init); OSD::AddCallback(OSD::OSD_SHUTDOWN, ButtonManager::Shutdown); |
