nes-proj/platform/c64/ctk/ctk-hires-theme-ravenpine.c

289 lines
9.1 KiB
C

/*
* Copyright (c) 2003, Adam Dunkels.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials provided
* with the distribution.
* 3. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
* OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
* WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
* DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
* GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
* INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
* WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* This file is part of the Contiki desktop OS for the C64
*
* $Id: ctk-hires-theme-ravenpine.c,v 1.1 2006/06/17 22:41:26 adamdunkels Exp $
*
*/
#include <conio.h>
#include "ctk-hires-theme.h"
#define COLOR(bg, fg) ((fg << 4) | (bg))
#define BGCOLOR1 0x00
#define BGCOLOR2 0x05
struct ctk_hires_theme ctk_hires_theme =
{
/* Version string. */
/* char version[8]; */
{0x00,0x00,0x00,0x00,0x00,0x00,0x00,0x00},
/* Window borders patterns. */
/* unsigned char ulcorner[8], */ /* Upper left corner. */
{0x00,0x3f,0x3f,0x30,0x30,0x30,0x30,0x30},
/* titlebar[8], */ /* Title bar pattern. */
{0x00,0xff,0xff,0x00,0x00,0x00,0x00,0x00},
/* urcorner[8], */ /* Upper right corner. */
{0x00,0xfc,0xfc,0x0c,0x0c,0x0c,0x0c,0x0c},
/* rightborder[8], */ /* Right border. */
{0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c},
/* lrcorner[8], */ /* Lower right corner. */
{0x0c,0x0c,0x0c,0x0c,0x0c,0xfc,0xfc,0x00},
/* lowerborder[8], */ /* Lower border. */
{0x00,0x00,0x00,0x00,0x00,0xff,0xff,0x00},
/* llcorner[8], */ /* Lower left corner. */
{0x30,0x30,0x30,0x30,0x30,0x3f,0x3f,0x00},
/* leftborder[8]; */ /* Left border. */
{0x30,0x30,0x30,0x30,0x30,0x30,0x30,0x30},
/* Button corner patterns. */
/* unsigned char buttonleft[8], */
{0x3e,0x30,0x30,0x30,0x30,0x30,0x30,0x3c},
/* buttonright[8]; */
{0x1c,0x0c,0x0c,0x0c,0x0c,0x0c,0x0c,0x3c},
/* Menu border patterns. */
/* unsigned char menuleftpattern[8], */
{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
/* menurightpatterns[8]; */
{0xff,0xff,0xff,0xff,0xff,0xff,0xff,0xff},
/* Window and widget colors. */
/* unsigned char windowcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
/* separatorcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
/* labelcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK)},
/* buttoncolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
/* hyperlinkcolors[6], */
{COLOR(COLOR_BLACK, COLOR_BLUE),
COLOR(COLOR_BLACK, COLOR_BLUE),
COLOR(COLOR_BLACK, COLOR_BLUE),
COLOR(COLOR_GREEN, COLOR_LIGHTBLUE),
COLOR(COLOR_LIGHTGREEN, COLOR_BLUE),
COLOR(COLOR_LIGHTGREEN, COLOR_LIGHTBLUE)},
/* textentrycolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_BLACK, COLOR_LIGHTGREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
/* bitmapcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
COLOR(COLOR_GREEN, COLOR_WHITE)},
/* textmapcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
COLOR(COLOR_GREEN, COLOR_WHITE)},
/* iconcolors[6]; */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_GREEN, COLOR_LIGHTGREEN),
COLOR(COLOR_GREEN, COLOR_WHITE)},
/* Button corner colors. */
/* unsigned char buttonleftcolors[6], */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
/* buttonrightcolors[6]; */
{COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GRAY1),
COLOR(COLOR_BLACK, COLOR_GREEN),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_BLACK),
COLOR(COLOR_LIGHTGREEN, COLOR_WHITE)},
/* Menu colors. */
/* unsigned char menucolor,*/
COLOR(COLOR_GREEN, COLOR_BLACK),
/* openmenucolor, */
COLOR(COLOR_BLACK, COLOR_GREEN),
/* activemenucolor; */
COLOR(COLOR_LIGHTGREEN, COLOR_GREEN),
/* Border and screen colors. */
/* unsigned char bordercolor,*/
0,
/* screencolor; */
0,
/* Pointer sprite 0 color */
COLOR_LIGHTGREEN,
/* Pointer sprite 1 color */
COLOR_GREEN,
/* Pointer sprite. */
/* unsigned char pointer[128]; */
{0x00, 0x00, 0x00,
0x40, 0x00, 0x00,
0x60, 0x00, 0x00,
0x70, 0x00, 0x00,
0x78, 0x00, 0x00,
0x7c, 0x00, 0x00,
0x70, 0x00, 0x00,
0x58, 0x00, 0x00,
0x18, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00,
0xc0, 0x00, 0x00,
0xe0, 0x00, 0x00,
0xf0, 0x00, 0x00,
0xf8, 0x00, 0x00,
0xfc, 0x00, 0x00,
0xfe, 0x00, 0x00,
0xfe, 0x00, 0x00,
0xfc, 0x00, 0x00,
0xfc, 0x00, 0x00,
0x3c, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00, 0x00, 0x00,
0x00 },
/* Background pattern fill. */
/* unsigned char backgroundpattern[8*25]; */
{
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,0,0,0, 0,
0,0,0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