1 |
|
/* |
2 |
|
* Display.cpp - C64 graphics display, emulator window handling |
3 |
|
* |
4 |
< |
* Frodo (C) 1994-1997,2002-2003 Christian Bauer |
4 |
> |
* Frodo (C) 1994-1997,2002-2005 Christian Bauer |
5 |
|
* |
6 |
|
* This program is free software; you can redistribute it and/or modify |
7 |
|
* it under the terms of the GNU General Public License as published by |
34 |
|
}; |
35 |
|
|
36 |
|
|
37 |
< |
#undef USE_THEORETICAL_COLORS |
37 |
> |
#define USE_PEPTO_COLORS 1 |
38 |
|
|
39 |
< |
#ifdef USE_THEORETICAL_COLORS |
39 |
> |
#ifdef USE_PEPTO_COLORS |
40 |
|
|
41 |
< |
// C64 color palette (theoretical values) |
41 |
> |
// C64 color palette |
42 |
> |
// Values based on measurements by Philip "Pepto" Timmermann <pepto@pepto.de> |
43 |
> |
// (see http://www.pepto.de/projects/colorvic/) |
44 |
|
const uint8 palette_red[16] = { |
45 |
< |
0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0x00, 0xff, 0xff, 0x80, 0xff, 0x40, 0x80, 0x80, 0x80, 0xc0 |
45 |
> |
0x00, 0xff, 0x86, 0x4c, 0x88, 0x35, 0x20, 0xcf, 0x88, 0x40, 0xcb, 0x34, 0x68, 0x8b, 0x68, 0xa1 |
46 |
|
}; |
47 |
|
|
48 |
|
const uint8 palette_green[16] = { |
49 |
< |
0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x00, 0xff, 0x80, 0x40, 0x80, 0x40, 0x80, 0xff, 0x80, 0xc0 |
49 |
> |
0x00, 0xff, 0x19, 0xc1, 0x17, 0xac, 0x07, 0xf2, 0x3e, 0x2a, 0x55, 0x34, 0x68, 0xff, 0x4a, 0xa1 |
50 |
|
}; |
51 |
|
|
52 |
|
const uint8 palette_blue[16] = { |
53 |
< |
0x00, 0xff, 0x00, 0xff, 0xff, 0x00, 0xff, 0x00, 0x00, 0x00, 0x80, 0x40, 0x80, 0x80, 0xff, 0xc0 |
53 |
> |
0x00, 0xff, 0x01, 0xe3, 0xbd, 0x0a, 0xc0, 0x2d, 0x00, 0x00, 0x37, 0x34, 0x68, 0x59, 0xff, 0xa1 |
54 |
|
}; |
55 |
|
|
56 |
|
#else |
57 |
|
|
58 |
< |
// C64 color palette (more realistic looking colors) |
58 |
> |
// C64 color palette (traditional Frodo colors) |
59 |
|
const uint8 palette_red[16] = { |
60 |
|
0x00, 0xff, 0x99, 0x00, 0xcc, 0x44, 0x11, 0xff, 0xaa, 0x66, 0xff, 0x40, 0x80, 0x66, 0x77, 0xc0 |
61 |
|
}; |
89 |
|
#elif defined(AMIGA) |
90 |
|
#include "Display_Amiga.h" |
91 |
|
#elif defined(HAVE_SDL) |
92 |
< |
#include "Display_SDL.h" |
92 |
> |
# if defined(QTOPIA) or defined(MAEMO) |
93 |
> |
# include "Display_EmbeddedSDL.h" |
94 |
> |
# else |
95 |
> |
# include "Display_SDL.h" |
96 |
> |
# endif |
97 |
|
#elif defined(__unix) |
98 |
|
# ifdef __svgalib__ |
99 |
|
# include "Display_svga.h" |