[Android] Fixed WindowHandle and getSystemHandle()

This commit is contained in:
Jonathan De Wachter 2013-10-26 14:02:23 +02:00
parent 77567e9656
commit 4626e95491
3 changed files with 5 additions and 6 deletions

View File

@ -63,7 +63,7 @@ namespace sf
#elif defined(SFML_SYSTEM_ANDROID) #elif defined(SFML_SYSTEM_ANDROID)
// Window handle doesn't exist on Android // Window handle is ANativeWindow (void*) on Android
typedef void* WindowHandle; typedef void* WindowHandle;
#endif #endif

View File

@ -61,7 +61,10 @@ WindowImplAndroid::~WindowImplAndroid()
//////////////////////////////////////////////////////////// ////////////////////////////////////////////////////////////
WindowHandle WindowImplAndroid::getSystemHandle() const WindowHandle WindowImplAndroid::getSystemHandle() const
{ {
return NULL; ActivityStates* states = getActivity(NULL);
sf::Lock lock(states->mutex);
return states->window;
} }

View File

@ -30,10 +30,6 @@
#include <SFML/Window/WindowImpl.hpp> #include <SFML/Window/WindowImpl.hpp>
#include <SFML/System/Sleep.hpp> #include <SFML/System/Sleep.hpp>
#include <SFML/System/Err.hpp> #include <SFML/System/Err.hpp>
#ifdef SFML_SYSTEM_ANDROID
#include <SFML/Window/Android/WindowImplAndroid.hpp>
#include <SFML/Window/Android/EglContext.hpp>
#endif
namespace namespace