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

Function GUI_StrategicMap_AnimateArrows

src/gui/gui.c:2965–2975  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2963}
2964
2965static void GUI_StrategicMap_AnimateArrows(void)
2966{
2967 if (s_arrowAnimationTimeout >= g_timerGUI) return;
2968 s_arrowAnimationTimeout = g_timerGUI + 7;
2969
2970 s_arrowAnimationState = (s_arrowAnimationState + 1) % 4;
2971
2972 memcpy(g_palette1 + 251 * 3, s_strategicMapArrowColors + s_arrowAnimationState * 3, 4 * 3);
2973
2974 GFX_SetPalette(g_palette1);
2975}
2976
2977static void GUI_StrategicMap_AnimateSelected(uint16 selected, StrategicMapData *data)
2978{

Calls 1

GFX_SetPaletteFunction · 0.85

Tested by

no test coverage detected