From 2eae5c2914731091ee25929250a701e5e2c2c724 Mon Sep 17 00:00:00 2001 From: Eugenio Favalli Date: Mon, 11 Apr 2005 08:20:14 +0000 Subject: Adding icon to the window --- src/main.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/main.cpp') diff --git a/src/main.cpp b/src/main.cpp index 95b1727b..8a32f043 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -38,6 +38,7 @@ #include #include #include +#include #ifdef __USE_UNIX98 #include @@ -213,6 +214,8 @@ void init_engine() screenW = 800; screenH = 600; bitDepth = 16; + + SDL_WM_SetIcon(IMG_Load("data/icons/tmw-icon.png"), NULL); screen = SDL_SetVideoMode(screenW, screenH, bitDepth, displayFlags); if (screen == NULL) { -- cgit v1.2.3-70-g09d2