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
|
|
|
*
|
|
|
|
* All files in this archive are subject to the GNU General Public License.
|
|
|
|
* See the file COPYING in the source tree root for full license agreement.
|
|
|
|
*
|
|
|
|
* 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
|
|
|
|
|
|
|
#endif // #ifndef __LCDSDL_H__
|
2006-01-09 11:22:36 +00:00
|
|
|
|