]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - ui.h
patch from div0 to add -sndmono and -sndstereo options to sdl sound code
[xonotic/darkplaces.git] / ui.h
diff --git a/ui.h b/ui.h
index 1f20e185700e26a7e30935fbf93c3872f45fd6c8..1c442feecafffb82f4f86bdb440e69898e4637e7 100644 (file)
--- a/ui.h
+++ b/ui.h
@@ -10,7 +10,7 @@
 
 #define UI_EVENT_QUEUE_SIZE 32
 
-typedef enum { UI_BUTTON, UI_LABEL } ui_control_type;
+typedef enum ui_control_type_e { UI_BUTTON, UI_LABEL } ui_control_type;
 
 typedef struct ui_message_s                    ui_message_t;
 typedef struct ui_item_s                       *ui_item_t;
@@ -29,7 +29,7 @@ struct ui_item_s
        // used to build the item list
        struct ui_item_s *prev, *next; // items are allowed to be freed everywhere
 
-       // called for system events (true means message processed) 
+       // called for system events (true means message processed)
        int     (*eventhandler)(ui_itemlist_t list, ui_item_t self, ui_message_t *in, ui_message_queue_t *out);
 
        // z-order (the higher, the later it is drawn)
@@ -126,7 +126,7 @@ typedef struct ui_button_s  *ui_button_t;
 typedef struct ui_label_s      *ui_label_t;
 typedef struct ui_text_s       *ui_text_t;
 
-struct ui_label_t
+struct ui_label_s
 {
        struct ui_item_s item;
 
@@ -142,7 +142,7 @@ struct ui_button
        const char *caption;
 };
 
-ui_item_t UI_CreateButton(void); 
+ui_item_t UI_CreateButton(void);
 ui_item_t UI_CreateLabel(void);
 ui_item_t UI_CreateText(void);