[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pingus-CVS] [pingus] push by address@hidden - Added application icon on
From: |
pingus |
Subject: |
[Pingus-CVS] [pingus] push by address@hidden - Added application icon on 2011-10-20 20:50 GMT |
Date: |
Thu, 20 Oct 2011 20:51:37 +0000 |
Revision: 22aea72af1d3
Author: Ingo Ruhnke <address@hidden>
Date: Thu Oct 20 13:50:48 2011
Log: Added application icon
http://code.google.com/p/pingus/source/detail?r=22aea72af1d3
Added:
/data/images/icon.png
Modified:
/src/engine/system/sdl_system.cpp
=======================================
--- /dev/null
+++ /data/images/icon.png Thu Oct 20 13:50:48 2011
Binary file, no diff available.
=======================================
--- /src/engine/system/sdl_system.cpp Sat Oct 1 13:19:58 2011
+++ /src/engine/system/sdl_system.cpp Thu Oct 20 13:50:48 2011
@@ -16,8 +16,11 @@
#include "engine/system/sdl_system.hpp"
+#include <SDL_image.h>
+
#include "engine/display/display.hpp"
#include "math/size.hpp"
+#include "util/pathname.hpp"
#include "util/log.hpp"
SDLSystem::SDLSystem()
@@ -40,9 +43,10 @@
void
SDLSystem::create_window(FramebufferType framebuffer_type, const Size&
size, bool fullscreen, bool resizable)
{
- Display::create_window(framebuffer_type, size, fullscreen, resizable);
-
- SDL_WM_SetCaption("Pingus " VERSION, 0 /* icon */);
+ SDL_WM_SetCaption("Pingus " VERSION, "Pingus " VERSION);
+ SDL_WM_SetIcon(IMG_Load(Pathname("images/icon.png",
Pathname::DATA_PATH).get_sys_path().c_str()), 0);
+
+ Display::create_window(framebuffer_type, size, fullscreen, resizable);
SDL_EnableUNICODE(1);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Pingus-CVS] [pingus] push by address@hidden - Added application icon on 2011-10-20 20:50 GMT,
pingus <=