Changed: #973 Added an icon for X11

This commit is contained in:
kervala 2010-07-17 18:21:02 +02:00
parent 64c6a0f756
commit 6ec37523e6

View file

@ -914,6 +914,23 @@ void prelogInit()
// Set the title
Driver->setWindowTitle(CI18N::get("TheSagaOfRyzom"));
#if defined(NL_OS_UNIX) && !defined(NL_OS_MAC)
vector<CBitmap> bitmaps;
string fileName = "/usr/share/pixmaps/ryzom.png";
CIFile file;
if (file.open(fileName))
{
CBitmap bitmap;
if (bitmap.load(file))
bitmaps.push_back(bitmap);
}
Driver->setWindowIcon(bitmaps);
#endif
sint32 posX = 0, posY = 0;
if (ClientCfg.Windowed)