Package: einstein Version: 2.0.dfsg.2-1 Severity: wishlist Tags: patch Hi,
Attached is a short patch that adds a little window icon. Also attached is a big caveat emptor as my knowledge of C++ and SDL is almost nonexistent ;-) It seems to work though, except the color masking, but maybe you or someone else can figure it out? -- System Information: Debian Release: 4.0 APT prefers unstable APT policy: (500, 'unstable'), (1, 'experimental') Architecture: i386 (i686) Shell: /bin/sh linked to /bin/bash Kernel: Linux 2.6.18-1-686 Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8) Versions of packages einstein depends on: ii libc6 2.3.6.ds1-7 GNU C Library: Shared libraries ii libfreetype6 2.2.1-5 FreeType 2 font engine, shared lib ii libgcc1 1:4.1.1-19 GCC support library ii libsdl-mixer1.2 1.2.6-1.1+b1 mixer library for Simple DirectMed ii libsdl-ttf2.0-0 2.0.8-3 ttf library for Simple DirectMedia ii libsdl1.2debian 1.2.11-5 Simple DirectMedia Layer ii libstdc++6 4.1.1-19 The GNU Standard C++ Library v3 ii zlib1g 1:1.2.3-13 compression library - runtime einstein recommends no packages. -- no debconf information -- Cheers, Sven Arvidsson http://www.whiz.se PGP Key ID 760BDD22
icon.bmp
Description: Windows bitmap
diff -rup ../einstein-2.0.dfsg.2.orig/main.cpp ./main.cpp
--- ../einstein-2.0.dfsg.2.orig/main.cpp 2006-10-29 21:32:30.000000000 +0100
+++ ./main.cpp 2006-10-29 21:39:14.000000000 +0100
@@ -31,6 +31,12 @@ static void initScreen()
SDL_SetColorKey(mouse, SDL_SRCCOLORKEY, SDL_MapRGB(mouse->format, 0, 0, 0));
screen.setMouseImage(mouse);
SDL_FreeSurface(mouse);
+
+ SDL_Surface *icon = loadImage(L"icon.bmp");
+ SDL_SetColorKey(icon, SDL_SRCCOLORKEY, SDL_MapRGB(icon->format, 0, 0, 0));
+ SDL_WM_SetIcon(icon, NULL);
+ SDL_FreeSurface(icon);
+
SDL_WM_SetCaption("Einstein", NULL);
#ifdef __APPLE__
diff -rup ../einstein-2.0.dfsg.2.orig/res/resources.descr ./res/resources.descr
--- ../einstein-2.0.dfsg.2.orig/res/resources.descr 2006-10-29 21:32:30.000000000 +0100
+++ ./res/resources.descr 2006-10-29 21:35:32.000000000 +0100
@@ -1,6 +1,7 @@
priority = 100
resources = {
+ { name = "icon.bmp" }
{ name = "cursor.bmp" }
{ name = "rain.bmp" }
{ name = "tile.bmp" }
signature.asc
Description: This is a digitally signed message part

