diff --git a/src/gui/widget.c b/src/gui/widget.c index cfecb9736..5d77b864b 100644 --- a/src/gui/widget.c +++ b/src/gui/widget.c @@ -208,7 +208,7 @@ void GUI_Widget_Draw(Widget *w) } break; case DRAW_MODE_UNKNOWN3: { - GFX_DrawSprite(drawParam.unknown, positionLeft, positionTop, HOUSE_HARKONNEN); + GFX_DrawSprite(drawParam.spriteID, positionLeft, positionTop, HOUSE_HARKONNEN); } break; case DRAW_MODE_CUSTOM_PROC: { @@ -595,9 +595,9 @@ Widget *GUI_Widget_Allocate(uint16 index, uint16 shortcut, uint16 offsetX, uint1 break; case 3: - drawMode = DRAW_MODE_NONE; - drawParam1.unknown = 0; - drawParam2.unknown = 0; + drawMode = DRAW_MODE_NONE; + drawParam1.spriteID = 0; + drawParam2.spriteID = 0; break; default: diff --git a/src/gui/widget.h b/src/gui/widget.h index adb8f3892..1c603a2df 100644 --- a/src/gui/widget.h +++ b/src/gui/widget.h @@ -52,7 +52,7 @@ struct Widget; * The parameter for a given DrawMode. */ typedef union WidgetDrawParameter { - uint16 unknown; /*!< Parameter for DRAW_MODE_UNKNOWN3. */ + uint16 spriteID; /*!< Parameter for DRAW_MODE_UNKNOWN3. */ void *sprite; /*!< Parameter for DRAW_MODE_SPRITE. */ char *text; /*!< Parameter for DRAW_MODE_TEXT. */ void (*proc)(struct Widget *); /*!< Parameter for DRAW_MODE_CUSTOM_PROC. */