Beispiel #1
0
#include "lcd-playersim.h"
#include "sim-ui-defines.h"
#include "lcd-sdl.h"

/* can't include file.h here */
#ifndef MAX_PATH
#define MAX_PATH 260
#endif

/* extern functions, needed for screendump() */
extern int sim_creat(const char *name, mode_t mode);

SDL_Surface* lcd_surface;

SDL_Color lcd_bl_color_dark    = {RED_CMP(LCD_BL_DARKCOLOR),
                                  GREEN_CMP(LCD_BL_DARKCOLOR),
                                  BLUE_CMP(LCD_BL_DARKCOLOR), 0};
SDL_Color lcd_bl_color_bright  = {RED_CMP(LCD_BL_BRIGHTCOLOR),
                                  GREEN_CMP(LCD_BL_BRIGHTCOLOR),
                                  BLUE_CMP(LCD_BL_BRIGHTCOLOR), 0};
SDL_Color lcd_color_dark    = {RED_CMP(LCD_DARKCOLOR),
                               GREEN_CMP(LCD_DARKCOLOR),
                               BLUE_CMP(LCD_DARKCOLOR), 0};
SDL_Color lcd_color_bright  = {RED_CMP(LCD_BRIGHTCOLOR),
                               GREEN_CMP(LCD_BRIGHTCOLOR),
                               BLUE_CMP(LCD_BRIGHTCOLOR), 0};


static unsigned long get_lcd_pixel(int x, int y)
{
    return sim_lcd_framebuffer[y][x];
Beispiel #2
0
 *
 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
 * KIND, either express or implied.
 *
 ****************************************************************************/

#include "sim-ui-defines.h"
#include "lcd-sdl.h"
#include "lcd-remote-bitmap.h"
#include "screendump.h"
#include "system.h" /* background */

SDL_Surface *remote_surface = 0;

SDL_Color remote_bl_color_dark    = {RED_CMP(LCD_REMOTE_BL_DARKCOLOR),
                                     GREEN_CMP(LCD_REMOTE_BL_DARKCOLOR),
                                     BLUE_CMP(LCD_REMOTE_BL_DARKCOLOR), 0};
SDL_Color remote_bl_color_bright  = {RED_CMP(LCD_REMOTE_BL_BRIGHTCOLOR),
                                     GREEN_CMP(LCD_REMOTE_BL_BRIGHTCOLOR),
                                     BLUE_CMP(LCD_REMOTE_BL_BRIGHTCOLOR), 0};
SDL_Color remote_color_dark    = {RED_CMP(LCD_REMOTE_DARKCOLOR),
                                  GREEN_CMP(LCD_REMOTE_DARKCOLOR),
                                  BLUE_CMP(LCD_REMOTE_DARKCOLOR), 0};
SDL_Color remote_color_bright  = {RED_CMP(LCD_REMOTE_BRIGHTCOLOR),
                                  GREEN_CMP(LCD_REMOTE_BRIGHTCOLOR),
                                  BLUE_CMP(LCD_REMOTE_BRIGHTCOLOR), 0};

#define NUM_SHADES  129

#if LCD_REMOTE_DEPTH == 2
/* Only defined for positive, non-split LCD for now */