1 /* 2 * w32_color.h - convert xblast colormto win32 color 3 * 4 * $Id: w32_color.h,v 1.2 2004/05/14 10:00:35 alfie Exp $ 5 * 6 * Program XBLAST 7 * (C) by Oliver Vogel (e-mail: m.vogel@ndh.net) 8 * 9 * This program is free software; you can redistribute it and/or modify 10 * it under the terms of the GNU General Public License as published 11 * by the Free Software Foundation; either version 2; or (at your option) 12 * any later version 13 * 14 * This program is distributed in the hope that it will be entertaining, 15 * but WITHOUT ANY WARRANTY; without even the implied warranty of 16 * MERCHANTABILTY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General 17 * Public License for more details. 18 * 19 * You should have received a copy of the GNU General Public License along 20 * with this program; if not, write to the Free Software Foundation, Inc. 21 * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 22 */ 23 #ifndef _W32_COLOR_H 24 #define _W32_COLOR_H 25 26 #include "w32_common.h" 27 28 #include "color.h" 29 30 /* 31 * global macros 32 */ 33 #define COLOR_TO_COLORREF(c) (RGB (255*GET_RED(c)/31, 255*GET_GREEN(c)/31, 255*GET_BLUE(c)/31) ) 34 35 #endif 36 /* 37 * end of file w32_color.h 38 */ 39