src/graph_gui.cpp
changeset 5919 2b58160d667d
parent 5860 7fdc9b423ba1
child 6001 1e4c5406cd1a
equal deleted inserted replaced
5918:602e158900a2 5919:2b58160d667d
   216 /* GRAPH LEGEND */
   216 /* GRAPH LEGEND */
   217 /****************/
   217 /****************/
   218 
   218 
   219 void DrawPlayerIcon(PlayerID p, int x, int y)
   219 void DrawPlayerIcon(PlayerID p, int x, int y)
   220 {
   220 {
   221 	DrawSprite(SPRITE_PALETTE(PLAYER_SPRITE_COLOR(p) + 0x2EB), x, y);
   221 	DrawSprite(0x2EB, PLAYER_SPRITE_COLOR(p), x, y);
   222 }
   222 }
   223 
   223 
   224 static void GraphLegendWndProc(Window *w, WindowEvent *e)
   224 static void GraphLegendWndProc(Window *w, WindowEvent *e)
   225 {
   225 {
   226 	const Player* p;
   226 	const Player* p;