From 462537d86901d0be14d651d05de6535396f412f8 Mon Sep 17 00:00:00 2001 From: kervala Date: Sat, 17 Jul 2010 18:21:02 +0200 Subject: [PATCH] Changed: #973 Added an icon for X11 --- code/ryzom/client/src/init.cpp | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/code/ryzom/client/src/init.cpp b/code/ryzom/client/src/init.cpp index b2f38db8e..a047d9455 100644 --- a/code/ryzom/client/src/init.cpp +++ b/code/ryzom/client/src/init.cpp @@ -914,6 +914,23 @@ void prelogInit() // Set the title Driver->setWindowTitle(CI18N::get("TheSagaOfRyzom")); +#if defined(NL_OS_UNIX) && !defined(NL_OS_MAC) + vector 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)