cruxports/maelstrom/struct-button.patch
2022-02-05 15:39:19 -05:00

30 lines
809 B
Diff

--- buttonlist.h 2000-01-25 11:41:32.000000000 -0500
+++ buttonlist.h 2021-06-07 10:12:16.469273599 -0400
@@ -16,7 +16,7 @@
void Add_Button(Uint16 x, Uint16 y, Uint16 width, Uint16 height,
void (*callback)(void)) {
- struct button *belem;
+ ButtonList::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;
+ ButtonList::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;
+ ButtonList::button *belem, *btemp;
for ( belem=button_list.next; belem; ) {
btemp = belem;