summaryrefslogtreecommitdiff
path: root/games/gtkpool/files/patch-gtkpool_application.cpp
blob: 70dcaa98885e0903c188bfbe910621bf3878599e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
--- gtkpool/application.cpp.orig	Tue Aug  6 11:02:45 2002
+++ gtkpool/application.cpp	Mon Aug  1 16:01:35 2005
@@ -67,11 +67,11 @@
 		message_colours[14] = new GdkColor;
 
 		buf_pixmap = NULL;
-		table_pixmaps = new (GdkPixmap *)[4];
-		balls_pixmaps = new (GdkPixmap *)[NUM_BALLS];
-		balls_pixmap_masks = new (GdkBitmap *)[NUM_BALLS];
-		balls_big_pixmaps = new (GdkPixmap *)[NUM_BALLS];
-		balls_big_pixmap_masks = new (GdkBitmap *)[NUM_BALLS];
+		table_pixmaps = new GdkPixmap *[4];
+		balls_pixmaps = new GdkPixmap *[NUM_BALLS];
+		balls_pixmap_masks = new GdkBitmap *[NUM_BALLS];
+		balls_big_pixmaps = new GdkPixmap *[NUM_BALLS];
+		balls_big_pixmap_masks = new GdkBitmap *[NUM_BALLS];
 		running = true; placing_cue = false;
 		sunk_tf = collide_tf = bounce_tf = false;
 		connected = false;
@@ -530,7 +530,7 @@
  	bb = find_if(balls.begin(), balls.end(), pointer_selects( x, y, hit_moving));
  	if(bb != balls.end())
  	{
-#if _CPP_CSTDLIB == 1
+#if _CPP_CSTDLIB == 1 || _GLIBCXX_CSTDLIB == 1
 		// FIXME: horrible, non-portable, converting a vector iterator
 		// to a pointer using g++ 3.0 private interface :-(
 		// -- Philip Martin <philip_martin@ntlworld.com>
@@ -815,7 +815,7 @@
 		load_sounds();
 }
 
-void Application::print_message(const char *message, int colour = 0)
+void Application::print_message(const char *message, int colour)
 {
 	if (colour > 4)
 		colour = 14;