예제 #1
0
/*
 * Copyright (c) 1999, 2005 Greg Haerr <*****@*****.**>
 *
 * 1bpp (2 color) standard palette definition
 */
#include "device.h"

/*
 * Standard palette for 2 color (monochrome) systems.
 */
const MWPALENTRY mwstdpal1[2] = {
	RGBDEF( 0  , 0  , 0   ),	/* black*/
	RGBDEF( 255, 255, 255 )		/* white*/
};
예제 #2
0
파일: min4.c 프로젝트: EPiCS/reconos_v2
/* Generated by convbmp*/
#include "device.h"

/* MWIMAGEHDR image_min4 converted from min4.bmp*/

static MWPALENTRY palette[16] = {
  RGBDEF(   0,   0,   0 ),	/* pal 0*/
  RGBDEF( 191,   0,   0 ),	/* pal 1*/
  RGBDEF(   0, 191,   0 ),	/* pal 2*/
  RGBDEF( 191, 191,   0 ),	/* pal 3*/
  RGBDEF(   0,   0, 191 ),	/* pal 4*/
  RGBDEF( 191,   0, 191 ),	/* pal 5*/
  RGBDEF(   0, 191, 191 ),	/* pal 6*/
  RGBDEF( 192, 192, 192 ),	/* pal 7*/
  RGBDEF( 128, 128, 128 ),	/* pal 8*/
  RGBDEF( 255,   0,   0 ),	/* pal 9*/
  RGBDEF(   0, 255,   0 ),	/* pal 10*/
  RGBDEF( 255, 255,   0 ),	/* pal 11*/
  RGBDEF(   0,   0, 255 ),	/* pal 12*/
  RGBDEF( 255,   0, 255 ),	/* pal 13*/
  RGBDEF(   0, 255, 255 ),	/* pal 14*/
  RGBDEF( 255, 255, 255 ),	/* pal 15*/
};

static MWUCHAR imagebits[] = {
0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00,
0xf8,0x88,0x88,0x88,0x88,0x88,0x88,0x80,
0xf7,0x77,0x77,0x77,0x77,0x77,0x77,0x80,
0xf7,0x77,0x00,0x00,0x00,0x77,0x77,0x80,
0xf7,0x77,0x00,0x00,0x00,0x77,0x77,0x80,
0xf7,0x77,0x77,0x77,0x77,0x77,0x77,0x80,
예제 #3
0
/*
 * Copyright (c) 1999 Greg Haerr <*****@*****.**>
 *
 * 8bpp (256 color) standard palette definition
 */
#include "device.h"

/*
 * Special palette for supporting 48 Windows colors and a 216 color
 * uniform color distribution.
 * Note: the first 20 colors are used internally as system colors.
 */
//change palette to fit rgbPalette from atsam9261_lcd.c
MWPALENTRY mwstdpal8[256] = {
	/* 16 EGA colors, arranged for direct predefined palette indexing*/
	RGBDEF( 0x00, 0x00, 0x00),	/* black*/
	RGBDEF( 0x00, 0x00, 0x80),	/* blue*/
	RGBDEF( 0x00, 0x80, 0x00),	/* green*/
	RGBDEF( 0x00, 0x80, 0x80),	/* cyan*/ /* COLOR_BACKGROUND*/
	RGBDEF( 0x80, 0x00, 0x00),	/* red*/  /* COLOR_ACTIVECAPTION A*/
	RGBDEF( 0x80, 0x00, 0x80),	/* magenta*/ /* COLOR_ACTIVECAPTION B*/
	RGBDEF( 0xc0, 0xc0, 0xc0),	/* adjusted brown*/
	RGBDEF( 0xc0, 0xdc, 0xc0),	/* ltgray*/
	RGBDEF( 0x80, 0x80, 0x80),	/* gray*/
	RGBDEF( 0x00, 0x00, 0xff),	/* ltblue*/
	RGBDEF( 0x00, 0xff, 0x00),	/* ltgreen*/
	RGBDEF( 0x00, 0xff, 0xff),	/* ltcyan*/
	RGBDEF( 0xff, 0x00, 0x00),	/* ltred*/
	RGBDEF( 0xff, 0x00, 0xff),	/* ltmagenta*/
	RGBDEF( 0x80, 0x80, 0x00),	/* yellow*/
	RGBDEF( 0xff, 0xff, 0xff),	/* white*/
예제 #4
0
/*
 * Copyright (c) 1999 Greg Haerr <*****@*****.**>
 *
 * 4bpp (16 color) standard palette definition
 */
#include "device.h"

/*
 * Standard palette for 16 color systems.
 */

#if CLEOPATRA
MWPALENTRY mwstdpal4[16] = {
	// 16 EGA colors, arranged in VGA standard palette order
	RGBDEF( 0  , 0  , 0   ),	// black
	RGBDEF( 128, 0  , 0   ),	// blue
	RGBDEF( 0  , 128, 0   ),	// green
	RGBDEF( 128, 128, 0   ),	// cyan
	RGBDEF( 0  , 0  , 128 ),	// red
	RGBDEF( 128, 0  , 128 ),	// magenta
	RGBDEF( 0  , 64 , 128 ),	// adjusted brown
	RGBDEF( 192, 192, 192 ),	// ltgray
	RGBDEF( 128, 128, 128 ),	// gray
	RGBDEF( 255, 0  , 0   ),	// ltblue
	RGBDEF( 0  , 255, 0   ),	// ltgreen
	RGBDEF( 255, 255, 0   ),	// ltcyan
	RGBDEF( 0  , 0  , 255 ),	// ltred
	RGBDEF( 255, 0  , 255 ),	// ltmagenta
	RGBDEF( 0  , 255, 255 ),	// yellow
	RGBDEF( 255, 255, 255 ),	// white
};
예제 #5
0
파일: devpal4.c 프로젝트: EPiCS/reconos_v2
/*
 * Copyright (c) 1999 Greg Haerr <*****@*****.**>
 *
 * 4bpp (16 color) standard palette definition
 */
#include "device.h"

/*
 * Standard palette for 16 color systems.
 */
MWPALENTRY mwstdpal4[16] = {
	/* 16 EGA colors, arranged in VGA standard palette order*/
	RGBDEF( 0  , 0  , 0   ),	/* black*/
	RGBDEF( 0  , 0  , 128 ),	/* blue*/
	RGBDEF( 0  , 128, 0   ),	/* green*/
	RGBDEF( 0  , 128, 128 ),	/* cyan*/
	RGBDEF( 128, 0  , 0   ),	/* red*/
	RGBDEF( 128, 0  , 128 ),	/* magenta*/
	RGBDEF( 128, 64 , 0   ),	/* adjusted brown*/
	RGBDEF( 192, 192, 192 ),	/* ltgray*/
	RGBDEF( 128, 128, 128 ),	/* gray*/
	RGBDEF( 0  , 0  , 255 ),	/* ltblue*/
	RGBDEF( 0  , 255, 0   ),	/* ltgreen*/
	RGBDEF( 0  , 255, 255 ),	/* ltcyan*/
	RGBDEF( 255, 0  , 0   ),	/* ltred*/
	RGBDEF( 255, 0  , 255 ),	/* ltmagenta*/
	RGBDEF( 255, 255, 0   ),	/* yellow*/
	RGBDEF( 255, 255, 255 ),	/* white*/
};
예제 #6
0
파일: devpal2.c 프로젝트: EPiCS/reconos_v2
/*
 * Copyright (c) 1999 Greg Haerr <*****@*****.**>
 *
 * 2pbb (4 color) standard palette definition
 */
#include "device.h"

/*
 * Standard palette for Everex Freestyle Palm PC
 * This palette is in reverse order from some 2bpp systems.
 * That is, white is pixel value 0, while black is 3.
 */
MWPALENTRY mwstdpal2[4] = {
	RGBDEF( 255, 255, 255 ),	/* white*/
	RGBDEF( 192, 192, 192 ),	/* ltgray*/
	RGBDEF( 128, 128, 128 ),	/* gray*/
	RGBDEF( 0  , 0  , 0   )		/* black*/
};