summaryrefslogtreecommitdiff
path: root/games/asc/patches/patch-source_gui.h
blob: 95ea7b786f67e9aef54810953c608d3981f1f724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
$NetBSD: patch-source_gui.h,v 1.1 2012/07/03 18:46:16 joerg Exp $

--- source/gui.h.orig	2012-07-03 10:55:50.000000000 +0000
+++ source/gui.h
@@ -221,7 +221,12 @@ class GuiHost : public BasicGuiHost {
         void   savebackground ( void );
         virtual int    painticons ( void );
         virtual void   paintsmallicons ( int taste, int up );
-        void   chainiconstohost ( T icn );
+        void   chainiconstohost ( T icn ) {
+          if ( icn ) {
+             setfirsticon( (T) icn->frst() );
+             getfirsticon()->sethost ( this );
+          }
+        }
         void   runpressedmouse ( int taste );
         void   cleanup ( void ) ;    // wird zum entfernen der kleinen guiicons aufgerufen, bevor das icon ausgefhrt wird
         virtual void   restorebackground ( void );