Skip to content

Commit

Permalink
-CodeChange: rename WidgetDrawParameter.unknown to spriteID
Browse files Browse the repository at this point in the history
  • Loading branch information
miniupnp committed Jan 2, 2017
1 parent df04f46 commit 18c46a0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions src/gui/widget.c
Original file line number Diff line number Diff line change
Expand Up @@ -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: {
Expand Down Expand Up @@ -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:
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widget.h
Original file line number Diff line number Diff line change
Expand Up @@ -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. */
Expand Down

0 comments on commit 18c46a0

Please sign in to comment.