gfx.c
changeset 2436 7d5df545bd5d
parent 2429 5e5b66fb8420
child 2548 49c8a096033f
equal deleted inserted replaced
2435:9b9d43988058 2436:7d5df545bd5d
  1989 void SortResolutions(int count)
  1989 void SortResolutions(int count)
  1990 {
  1990 {
  1991 	qsort(_resolutions, count, sizeof(_resolutions[0]), compare_res);
  1991 	qsort(_resolutions, count, sizeof(_resolutions[0]), compare_res);
  1992 }
  1992 }
  1993 
  1993 
  1994 uint16 GetDrawStringPlayerColor(byte player)
  1994 uint16 GetDrawStringPlayerColor(PlayerID player)
  1995 {
  1995 {
  1996 	// Get the color for DrawString-subroutines which matches the color
  1996 	// Get the color for DrawString-subroutines which matches the color
  1997 	//  of the player
  1997 	//  of the player
  1998 	if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1)
  1998 	if (player == OWNER_SPECTATOR || player == OWNER_SPECTATOR - 1)
  1999 			return 1;
  1999 			return 1;