gsdx: add also a check of m_windows to play it self.

pcsx2: add a define to print the revision number with cmake


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4560 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-04-09 08:39:54 +00:00
parent 4bb717bab2
commit b51ac8d779
3 changed files with 3 additions and 2 deletions

View File

@ -8,6 +8,7 @@ endif(NOT TOP_CMAKE_WAS_SOURCED)
# set common flags
set(CommonFlags
-DLINUX_PRINT_SVN_NUMBER
-pthread
-fvisibility=hidden
-fno-guess-branch-probability

View File

@ -154,7 +154,7 @@ void SysOutOfMemory_EmergencyResponse(uptr blocksize)
}
#if _MSC_VER
#if _MSC_VER || defined(LINUX_PRINT_SVN_NUMBER)
# include "svnrev.h"
#endif

View File

@ -352,7 +352,7 @@ bool GSWnd::Create(const string& title, int w, int h)
m_window = SDL_CreateWindow(title.c_str(), 100, 100, w, h, SDL_WINDOW_OPENGL | SDL_WINDOW_SHOWN | SDL_WINDOW_RESIZABLE);
return true;
return (m_window != NULL);
}
Display* GSWnd::GetDisplay()