mirror of
https://github.com/glest/glest-source.git
synced 2025-08-16 05:13:59 +02:00
- lots of updates including:
- cmake system changes (after doing a make you may go: sudo make install to install in standard linux paths) - updates to various pathing in order to more robustly support lhs *WARNING, Linux dev's should run cmake like the following to avoid pathing issues as the default now is lhs paths: cmake -DCMAKE_INSTALL_PREFIX= .. (notice the SPACE before the ..)
This commit is contained in:
@@ -66,14 +66,24 @@ void PlatformContextGl::init(int colorBits, int depthBits, int stencilBits,bool
|
||||
int resH = PlatformCommon::Private::ScreenHeight;
|
||||
|
||||
#ifndef WIN32
|
||||
if(fileExists("megaglest.bmp")) {
|
||||
string mg_icon_file = "";
|
||||
#if defined(CUSTOM_DATA_INSTALL_PATH_VALUE)
|
||||
if(fileExists(CUSTOM_DATA_INSTALL_PATH_VALUE + "megaglest.bmp")) {
|
||||
mg_icon_file = CUSTOM_DATA_INSTALL_PATH_VALUE + "megaglest.bmp";
|
||||
}
|
||||
#endif
|
||||
|
||||
if(mg_icon_file == "" && fileExists("megaglest.bmp")) {
|
||||
mg_icon_file = "megaglest.bmp";
|
||||
}
|
||||
if(mg_icon_file != "") {
|
||||
|
||||
if(icon != NULL) {
|
||||
SDL_FreeSurface(icon);
|
||||
icon = NULL;
|
||||
}
|
||||
|
||||
icon = SDL_LoadBMP("megaglest.bmp");
|
||||
icon = SDL_LoadBMP(mg_icon_file.c_str());
|
||||
//SDL_Surface *icon = IMG_Load("megaglest.ico");
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user