2006-01-09 11:22:36 +00:00
|
|
|
/***************************************************************************
|
2006-02-03 15:19:58 +00:00
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
2006-01-09 11:22:36 +00:00
|
|
|
* $Id$
|
|
|
|
*
|
2006-02-03 15:19:58 +00:00
|
|
|
* Copyright (C) 2006 Dan Everton
|
2006-01-09 11:22:36 +00:00
|
|
|
*
|
2008-06-28 18:10:04 +00:00
|
|
|
* This program is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU General Public License
|
|
|
|
* as published by the Free Software Foundation; either version 2
|
|
|
|
* of the License, or (at your option) any later version.
|
2006-01-09 11:22:36 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2006-02-03 15:19:58 +00:00
|
|
|
#ifndef __LCDSDL_H__
|
|
|
|
#define __LCDSDL_H__
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2006-02-03 15:19:58 +00:00
|
|
|
#include "lcd.h"
|
2006-02-09 21:49:28 +00:00
|
|
|
#include "SDL.h"
|
2006-01-09 11:22:36 +00:00
|
|
|
|
2006-02-09 21:49:28 +00:00
|
|
|
/* Default display zoom level */
|
|
|
|
extern int display_zoom;
|
2006-02-03 15:19:58 +00:00
|
|
|
|
2006-02-09 21:49:28 +00:00
|
|
|
void sdl_update_rect(SDL_Surface *surface, int x_start, int y_start, int width,
|
2006-02-26 13:37:42 +00:00
|
|
|
int height, int max_x, int max_y,
|
|
|
|
unsigned long (*getpixel)(int, int));
|
|
|
|
|
|
|
|
void sdl_gui_update(SDL_Surface *surface, int x_start, int y_start, int width,
|
|
|
|
int height, int max_x, int max_y, int ui_x, int ui_y);
|
2006-02-03 15:19:58 +00:00
|
|
|
|
2006-02-09 21:49:28 +00:00
|
|
|
void sdl_set_gradient(SDL_Surface *surface, SDL_Color *start, SDL_Color *end,
|
2006-02-26 13:37:42 +00:00
|
|
|
int first, int steps);
|
2006-02-03 15:19:58 +00:00
|
|
|
|
2006-03-19 06:59:36 +00:00
|
|
|
#endif /* #ifndef __LCDSDL_H__ */
|
2006-01-09 11:22:36 +00:00
|
|
|
|