summarylogtreecommitdiffstats
path: root/10-maelstrom-buttonlist-struct.patch
blob: 5b7080a769020372ec8f217160db7718982f8558 (plain)
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
diff -ruN Maelstrom-3.0.6.20200415_131618/buttonlist.h Maelstrom-3.0.6/buttonlist.h
--- Maelstrom-3.0.6.20200415_131618/buttonlist.h	2020-04-15 13:16:18.370835213 +0300
+++ Maelstrom-3.0.6/buttonlist.h	2020-04-15 13:16:43.780543258 +0300
@@ -16,7 +16,7 @@
 
 	void Add_Button(Uint16 x, Uint16 y, Uint16 width, Uint16 height, 
 						void (*callback)(void)) {
-		struct button *belem;
+		button *belem;
 		
 		for ( belem=&button_list; belem->next; belem=belem->next );
 		belem->next = new button;
@@ -30,7 +30,7 @@
 	}
 
 	void Activate_Button(Uint16 x, Uint16 y) {
-		struct button *belem;
+		button *belem;
 
 		for ( belem=button_list.next; belem; belem=belem->next ) {
 			if ( (x >= belem->x1) && (x <= belem->x2) &&
@@ -42,7 +42,7 @@
 	}
 
 	void Delete_Buttons(void) {
-		struct button *belem, *btemp;
+		button *belem, *btemp;
 
 		for ( belem=button_list.next; belem; ) {
 			btemp = belem;
@@ -62,3 +62,4 @@
 	} button;
 	button button_list;
 };
+