MCPcopy Create free account
hub / github.com/OpenDUNE/OpenDUNE / Sprite_GetWidth

Function Sprite_GetWidth

src/sprites.c:154–159  ·  view source on GitHub ↗

* Gets the width of the given sprite. * * @param sprite The sprite. * @return The width. */

Source from the content-addressed store, hash-verified

152 * @return The width.
153 */
154uint8 Sprite_GetWidth(uint8 *sprite)
155{
156 if (sprite == NULL) return 0;
157
158 return sprite[3];
159}
160
161/**
162 * Gets the height of the given sprite.

Callers 9

GameCredits_PlayFunction · 0.85
GUI_Widget_AllocateFunction · 0.85
GUI_Mentat_DisplayFunction · 0.85
GUI_Mentat_AnimationFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected