X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fbuttons.h;h=064a65ada51e8a3947d5bed5ca6e2235573d63ef;hb=240269d614d12d0612cc0764589e6798378e2b8c;hp=f473b877439804a6b2c2187fee7b664aa2d26450;hpb=3f3ea56ee7a6b0818aa916a44afd5127d99d4f42;p=rocksndiamonds.git diff --git a/src/buttons.h b/src/buttons.h index f473b877..064a65ad 100644 --- a/src/buttons.h +++ b/src/buttons.h @@ -305,6 +305,7 @@ int CheckCountButtons(int, int, int); /* gadget structure constants */ #define MAX_GADGET_TEXTSIZE 1024 +#define MAX_INFO_TEXTSIZE 1024 /* gadget creation tags */ #define GDI_END 0 @@ -336,7 +337,7 @@ int CheckCountButtons(int, int, int); #define GDI_SCROLLBAR_ITEMS_MAX 26 #define GDI_SCROLLBAR_ITEMS_VISIBLE 27 #define GDI_SCROLLBAR_ITEM_POSITION 28 -#define GDI_DESCRIPTION_TEXT 29 +#define GDI_INFO_TEXT 29 typedef void (*gadget_function)(void *); @@ -387,7 +388,7 @@ struct GadgetInfo { int id; /* internal gadget identifier */ int custom_id; /* custom gadget identifier */ - char *description_text; /* short text describing gadget */ + char info_text[MAX_INFO_TEXTSIZE]; /* short popup info text */ int x, y; /* gadget position */ int width, height; /* gadget size */ unsigned long type; /* type (button, text input, ...) */