2005-10-28 00:17:15 +00:00
|
|
|
/***************************************************************************
|
|
|
|
* __________ __ ___.
|
|
|
|
* Open \______ \ ____ ____ | | _\_ |__ _______ ___
|
|
|
|
* Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
|
|
|
|
* Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
|
|
|
|
* Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
|
|
|
|
* \/ \/ \/ \/ \/
|
|
|
|
* $Id$
|
|
|
|
*
|
2005-10-30 01:24:35 +00:00
|
|
|
* Copyright (C) 2005 by Kevin Ferrare
|
2005-10-28 00:17:15 +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.
|
2005-10-28 00:17:15 +00:00
|
|
|
*
|
|
|
|
* This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
|
|
|
|
* KIND, either express or implied.
|
|
|
|
*
|
|
|
|
****************************************************************************/
|
|
|
|
|
2010-05-06 21:04:40 +00:00
|
|
|
#include <stdio.h>
|
|
|
|
#include "config.h"
|
2005-10-28 00:17:15 +00:00
|
|
|
#include <lcd.h>
|
2012-01-07 19:35:46 +00:00
|
|
|
#ifdef HAVE_REMOTE_LCD
|
2005-10-28 00:17:15 +00:00
|
|
|
#include <lcd-remote.h>
|
2012-01-07 19:35:46 +00:00
|
|
|
#endif
|
2013-12-20 22:34:28 +00:00
|
|
|
#include "scroll_engine.h"
|
2005-10-28 00:17:15 +00:00
|
|
|
#include <font.h>
|
|
|
|
#include <button.h>
|
|
|
|
#include <settings.h>
|
|
|
|
#include <kernel.h>
|
|
|
|
#include <icons.h>
|
|
|
|
|
2010-05-06 21:04:40 +00:00
|
|
|
#include "backlight.h"
|
2005-10-28 00:17:15 +00:00
|
|
|
#include "screen_access.h"
|
2009-08-06 00:14:40 +00:00
|
|
|
#include "backdrop.h"
|
2020-10-07 06:01:35 +00:00
|
|
|
#include "viewport.h"
|
2005-10-28 00:17:15 +00:00
|
|
|
|
2008-09-07 20:09:11 +00:00
|
|
|
/* some helper functions to calculate metrics on the fly */
|
|
|
|
static int screen_helper_getcharwidth(void)
|
|
|
|
{
|
|
|
|
return font_get(lcd_getfont())->maxwidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int screen_helper_getcharheight(void)
|
|
|
|
{
|
|
|
|
return font_get(lcd_getfont())->height;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int screen_helper_getnblines(void)
|
|
|
|
{
|
|
|
|
int height=screens[0].lcdheight;
|
2009-09-07 17:37:06 +00:00
|
|
|
if(global_settings.statusbar != STATUSBAR_OFF)
|
2008-09-07 20:09:11 +00:00
|
|
|
height -= STATUSBAR_HEIGHT;
|
|
|
|
return height / screens[0].getcharheight();
|
|
|
|
}
|
|
|
|
|
2011-09-24 13:19:34 +00:00
|
|
|
void screen_helper_setfont(int font)
|
|
|
|
{
|
2011-09-24 13:34:23 +00:00
|
|
|
(void)font;
|
2011-09-24 13:19:34 +00:00
|
|
|
if (font == FONT_UI)
|
|
|
|
font = global_status.font_id[SCREEN_MAIN];
|
|
|
|
lcd_setfont(font);
|
|
|
|
}
|
|
|
|
|
2011-12-20 20:35:28 +00:00
|
|
|
static int screen_helper_getuifont(void)
|
2011-11-08 10:09:33 +00:00
|
|
|
{
|
|
|
|
return global_status.font_id[SCREEN_MAIN];
|
|
|
|
}
|
|
|
|
|
2011-12-20 20:35:28 +00:00
|
|
|
static void screen_helper_setuifont(int font)
|
2011-11-08 10:09:33 +00:00
|
|
|
{
|
|
|
|
global_status.font_id[SCREEN_MAIN] = font;
|
|
|
|
}
|
|
|
|
|
2013-12-20 22:34:28 +00:00
|
|
|
static void screen_helper_set_drawmode(int mode)
|
|
|
|
{
|
|
|
|
lcd_set_drawmode(mode);
|
|
|
|
}
|
|
|
|
|
2013-12-20 22:34:28 +00:00
|
|
|
static void screen_helper_put_line(int x, int y, struct line_desc *line,
|
|
|
|
const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
2014-01-08 09:45:00 +00:00
|
|
|
vput_line(&screens[SCREEN_MAIN], x, y, line, fmt, ap);
|
2013-12-20 22:34:28 +00:00
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
2020-10-07 06:01:35 +00:00
|
|
|
void screen_helper_lcd_viewport_set_buffer(struct viewport *vp, struct frame_buffer_t *buffer)
|
|
|
|
{
|
|
|
|
viewport_set_buffer(vp, buffer, SCREEN_MAIN);
|
|
|
|
}
|
|
|
|
|
2008-09-07 20:09:11 +00:00
|
|
|
#if NB_SCREENS == 2
|
2020-10-07 06:01:35 +00:00
|
|
|
void screen_helper_lcd_remote_viewport_set_buffer(struct viewport *vp, struct frame_buffer_t *buffer)
|
|
|
|
{
|
|
|
|
viewport_set_buffer(vp, buffer, SCREEN_REMOTE);
|
|
|
|
}
|
|
|
|
|
2008-09-07 20:09:11 +00:00
|
|
|
static int screen_helper_remote_getcharwidth(void)
|
|
|
|
{
|
|
|
|
return font_get(lcd_remote_getfont())->maxwidth;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int screen_helper_remote_getcharheight(void)
|
|
|
|
{
|
|
|
|
return font_get(lcd_remote_getfont())->height;
|
|
|
|
}
|
|
|
|
|
|
|
|
static int screen_helper_remote_getnblines(void)
|
|
|
|
{
|
|
|
|
int height=screens[1].lcdheight;
|
2009-09-07 17:37:06 +00:00
|
|
|
if(global_settings.statusbar != STATUSBAR_OFF)
|
2008-09-07 20:09:11 +00:00
|
|
|
height -= STATUSBAR_HEIGHT;
|
|
|
|
return height / screens[1].getcharheight();
|
|
|
|
}
|
2011-09-24 13:19:34 +00:00
|
|
|
|
|
|
|
void screen_helper_remote_setfont(int font)
|
|
|
|
{
|
|
|
|
if (font == FONT_UI)
|
|
|
|
font = global_status.font_id[SCREEN_REMOTE];
|
|
|
|
lcd_remote_setfont(font);
|
|
|
|
}
|
2011-11-08 10:09:33 +00:00
|
|
|
|
2011-12-21 17:36:18 +00:00
|
|
|
static int screen_helper_remote_getuifont(void)
|
2011-11-08 10:09:33 +00:00
|
|
|
{
|
|
|
|
return global_status.font_id[SCREEN_REMOTE];
|
|
|
|
}
|
|
|
|
|
2011-12-21 17:36:18 +00:00
|
|
|
static void screen_helper_remote_setuifont(int font)
|
2011-11-08 10:09:33 +00:00
|
|
|
{
|
|
|
|
global_status.font_id[SCREEN_REMOTE] = font;
|
|
|
|
}
|
|
|
|
|
2013-12-20 22:34:28 +00:00
|
|
|
static void screen_helper_remote_put_line(int x, int y, struct line_desc *line,
|
|
|
|
const char *fmt, ...)
|
|
|
|
{
|
|
|
|
va_list ap;
|
|
|
|
va_start(ap, fmt);
|
2014-01-08 09:45:00 +00:00
|
|
|
vput_line(&screens[SCREEN_REMOTE], x, y, line, fmt, ap);
|
2013-12-20 22:34:28 +00:00
|
|
|
va_end(ap);
|
|
|
|
}
|
|
|
|
|
2008-09-07 20:09:11 +00:00
|
|
|
#endif
|
|
|
|
|
2007-09-18 19:05:35 +00:00
|
|
|
struct screen screens[NB_SCREENS] =
|
2005-10-28 00:17:15 +00:00
|
|
|
{
|
|
|
|
{
|
2007-09-18 19:05:35 +00:00
|
|
|
.screen_type=SCREEN_MAIN,
|
2008-06-28 20:45:21 +00:00
|
|
|
.lcdwidth=LCD_WIDTH,
|
|
|
|
.lcdheight=LCD_HEIGHT,
|
2007-09-18 19:05:35 +00:00
|
|
|
.depth=LCD_DEPTH,
|
2008-09-07 20:09:11 +00:00
|
|
|
.getnblines=&screen_helper_getnblines,
|
2006-10-14 01:32:58 +00:00
|
|
|
#if defined(HAVE_LCD_COLOR)
|
2007-09-18 19:05:35 +00:00
|
|
|
.is_color=true,
|
2007-07-18 11:18:52 +00:00
|
|
|
#else
|
2007-09-18 19:05:35 +00:00
|
|
|
.is_color=false,
|
2007-08-04 03:01:46 +00:00
|
|
|
#endif
|
2007-09-18 19:05:35 +00:00
|
|
|
.pixel_format=LCD_PIXELFORMAT,
|
2008-09-07 20:09:11 +00:00
|
|
|
.getcharwidth=screen_helper_getcharwidth,
|
|
|
|
.getcharheight=screen_helper_getcharheight,
|
2007-02-18 05:07:19 +00:00
|
|
|
#if (CONFIG_LED == LED_VIRTUAL)
|
2007-09-18 19:05:35 +00:00
|
|
|
.has_disk_led=false,
|
2005-11-24 00:10:14 +00:00
|
|
|
#elif defined(HAVE_REMOTE_LCD)
|
2007-09-18 19:05:35 +00:00
|
|
|
.has_disk_led=true,
|
2005-11-20 01:02:14 +00:00
|
|
|
#endif
|
2013-12-20 22:34:28 +00:00
|
|
|
.set_drawmode=&screen_helper_set_drawmode,
|
2020-10-07 06:01:35 +00:00
|
|
|
.init_viewport=&lcd_init_viewport,
|
2008-01-08 01:22:14 +00:00
|
|
|
.set_viewport=&lcd_set_viewport,
|
2020-10-07 06:01:35 +00:00
|
|
|
.set_viewport_ex=&lcd_set_viewport_ex,
|
|
|
|
.viewport_set_buffer = &screen_helper_lcd_viewport_set_buffer,
|
|
|
|
.current_viewport = &lcd_current_viewport,
|
2008-01-08 01:22:14 +00:00
|
|
|
.getwidth=&lcd_getwidth,
|
|
|
|
.getheight=&lcd_getheight,
|
2007-09-18 19:05:35 +00:00
|
|
|
.getstringsize=&lcd_getstringsize,
|
2011-09-24 13:19:34 +00:00
|
|
|
.setfont=screen_helper_setfont,
|
2011-11-08 10:09:33 +00:00
|
|
|
.getuifont=screen_helper_getuifont,
|
|
|
|
.setuifont=screen_helper_setuifont,
|
2007-09-18 19:05:35 +00:00
|
|
|
.mono_bitmap=&lcd_mono_bitmap,
|
|
|
|
.mono_bitmap_part=&lcd_mono_bitmap_part,
|
|
|
|
.bitmap=(screen_bitmap_func*)&lcd_bitmap,
|
|
|
|
.bitmap_part=(screen_bitmap_part_func*)&lcd_bitmap_part,
|
2007-04-16 23:55:19 +00:00
|
|
|
#if LCD_DEPTH <= 2
|
2007-09-18 19:05:35 +00:00
|
|
|
/* No transparency yet for grayscale and mono lcd */
|
|
|
|
.transparent_bitmap=(screen_bitmap_func*)&lcd_bitmap,
|
|
|
|
.transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_bitmap_part,
|
2006-01-28 23:12:20 +00:00
|
|
|
#else
|
2007-09-18 19:05:35 +00:00
|
|
|
.transparent_bitmap=(screen_bitmap_func*)&lcd_bitmap_transparent,
|
|
|
|
.transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_bitmap_transparent_part,
|
2006-10-14 01:32:58 +00:00
|
|
|
#endif
|
2011-11-08 21:34:46 +00:00
|
|
|
.bmp = &lcd_bmp,
|
|
|
|
.bmp_part = &lcd_bmp_part,
|
2012-12-03 09:43:58 +00:00
|
|
|
.nine_segment_bmp = &lcd_nine_segment_bmp,
|
2007-04-16 23:55:19 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2007-02-17 21:54:17 +00:00
|
|
|
#if defined(HAVE_LCD_COLOR) && defined(LCD_REMOTE_DEPTH) && LCD_REMOTE_DEPTH > 1
|
2007-09-18 19:05:35 +00:00
|
|
|
.color_to_native=&lcd_color_to_native,
|
2006-01-28 23:12:20 +00:00
|
|
|
#endif
|
2007-09-18 19:05:35 +00:00
|
|
|
.get_background=&lcd_get_background,
|
|
|
|
.get_foreground=&lcd_get_foreground,
|
|
|
|
.set_background=&lcd_set_background,
|
|
|
|
.set_foreground=&lcd_set_foreground,
|
2007-03-26 07:52:13 +00:00
|
|
|
#endif /* LCD_DEPTH > 1 */
|
2007-09-18 19:05:35 +00:00
|
|
|
.update_rect=&lcd_update_rect,
|
2008-01-08 01:22:14 +00:00
|
|
|
.update_viewport_rect=&lcd_update_viewport_rect,
|
2007-09-18 19:05:35 +00:00
|
|
|
.fillrect=&lcd_fillrect,
|
|
|
|
.drawrect=&lcd_drawrect,
|
2010-10-11 01:19:55 +00:00
|
|
|
.draw_border_viewport=&lcd_draw_border_viewport,
|
|
|
|
.fill_viewport=&lcd_fill_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.drawpixel=&lcd_drawpixel,
|
|
|
|
.drawline=&lcd_drawline,
|
|
|
|
.vline=&lcd_vline,
|
|
|
|
.hline=&lcd_hline,
|
|
|
|
.scroll_step=&lcd_scroll_step,
|
2005-10-28 00:17:15 +00:00
|
|
|
|
2007-09-18 19:05:35 +00:00
|
|
|
.putsxy=&lcd_putsxy,
|
|
|
|
.puts=&lcd_puts,
|
2009-10-17 18:02:48 +00:00
|
|
|
.putsf=&lcd_putsf,
|
2022-11-10 14:38:50 +00:00
|
|
|
.putsxyf=&lcd_putsxyf,
|
2007-09-18 19:05:35 +00:00
|
|
|
.puts_scroll=&lcd_puts_scroll,
|
2013-12-20 22:34:28 +00:00
|
|
|
.putsxy_scroll_func=&lcd_putsxy_scroll_func,
|
2007-09-18 19:05:35 +00:00
|
|
|
.scroll_speed=&lcd_scroll_speed,
|
|
|
|
.scroll_delay=&lcd_scroll_delay,
|
|
|
|
.clear_display=&lcd_clear_display,
|
2008-01-08 01:22:14 +00:00
|
|
|
.clear_viewport=&lcd_clear_viewport,
|
2013-01-31 06:24:19 +00:00
|
|
|
.scroll_stop_viewport_rect=&lcd_scroll_stop_viewport_rect,
|
2008-01-08 01:22:14 +00:00
|
|
|
.scroll_stop=&lcd_scroll_stop,
|
2013-04-03 14:33:23 +00:00
|
|
|
.scroll_stop_viewport=&lcd_scroll_stop_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.update=&lcd_update,
|
2008-01-08 01:22:14 +00:00
|
|
|
.update_viewport=&lcd_update_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.backlight_on=&backlight_on,
|
|
|
|
.backlight_off=&backlight_off,
|
|
|
|
.is_backlight_on=&is_backlight_on,
|
2007-10-21 11:02:51 +00:00
|
|
|
.backlight_set_timeout=&backlight_set_timeout,
|
2010-01-27 06:47:56 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2009-08-06 00:14:40 +00:00
|
|
|
.backdrop_load=&backdrop_load,
|
|
|
|
.backdrop_show=&backdrop_show,
|
2010-01-27 06:47:56 +00:00
|
|
|
#endif
|
2020-10-26 16:38:22 +00:00
|
|
|
#if defined(HAVE_LCD_COLOR)
|
2012-03-15 11:50:17 +00:00
|
|
|
.gradient_fillrect = lcd_gradient_fillrect,
|
2013-12-20 22:34:28 +00:00
|
|
|
.gradient_fillrect_part = lcd_gradient_fillrect_part,
|
2005-10-30 22:34:51 +00:00
|
|
|
#endif
|
2013-12-20 22:34:28 +00:00
|
|
|
.put_line = screen_helper_put_line,
|
2007-10-21 11:02:51 +00:00
|
|
|
},
|
|
|
|
#if NB_SCREENS == 2
|
|
|
|
{
|
2007-09-18 19:05:35 +00:00
|
|
|
.screen_type=SCREEN_REMOTE,
|
2008-06-28 20:45:21 +00:00
|
|
|
.lcdwidth=LCD_REMOTE_WIDTH,
|
|
|
|
.lcdheight=LCD_REMOTE_HEIGHT,
|
2007-09-18 19:05:35 +00:00
|
|
|
.depth=LCD_REMOTE_DEPTH,
|
2008-09-07 20:09:11 +00:00
|
|
|
.getnblines=&screen_helper_remote_getnblines,
|
2007-09-18 19:05:35 +00:00
|
|
|
.is_color=false,/* No color remotes yet */
|
|
|
|
.pixel_format=LCD_REMOTE_PIXELFORMAT,
|
2008-09-07 20:09:11 +00:00
|
|
|
.getcharwidth=screen_helper_remote_getcharwidth,
|
|
|
|
.getcharheight=screen_helper_remote_getcharheight,
|
2007-09-18 19:05:35 +00:00
|
|
|
.has_disk_led=false,
|
2013-12-20 22:34:28 +00:00
|
|
|
.set_drawmode=&lcd_remote_set_drawmode,
|
2020-10-07 06:01:35 +00:00
|
|
|
.init_viewport=&lcd_remote_init_viewport,
|
2008-01-08 01:22:14 +00:00
|
|
|
.set_viewport=&lcd_remote_set_viewport,
|
2020-10-07 06:01:35 +00:00
|
|
|
.set_viewport_ex=&lcd_remote_set_viewport_ex,
|
|
|
|
.viewport_set_buffer = &screen_helper_lcd_remote_viewport_set_buffer,
|
|
|
|
.current_viewport = &lcd_remote_current_viewport,
|
2008-01-08 01:22:14 +00:00
|
|
|
.getwidth=&lcd_remote_getwidth,
|
|
|
|
.getheight=&lcd_remote_getheight,
|
2007-09-18 19:05:35 +00:00
|
|
|
.getstringsize=&lcd_remote_getstringsize,
|
|
|
|
#if 1 /* all remote LCDs are bitmapped so far */
|
2011-11-08 10:09:33 +00:00
|
|
|
.setfont=screen_helper_remote_setfont,
|
|
|
|
.getuifont=screen_helper_remote_getuifont,
|
|
|
|
.setuifont=screen_helper_remote_setuifont,
|
2007-09-18 19:05:35 +00:00
|
|
|
.mono_bitmap=&lcd_remote_mono_bitmap,
|
|
|
|
.mono_bitmap_part=&lcd_remote_mono_bitmap_part,
|
|
|
|
.bitmap=(screen_bitmap_func*)&lcd_remote_bitmap,
|
|
|
|
.bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part,
|
|
|
|
#if LCD_REMOTE_DEPTH <= 2
|
|
|
|
/* No transparency yet for grayscale and mono lcd */
|
|
|
|
.transparent_bitmap=(screen_bitmap_func*)&lcd_remote_bitmap,
|
|
|
|
.transparent_bitmap_part=(screen_bitmap_part_func*)&lcd_remote_bitmap_part,
|
|
|
|
/* No colour remotes yet */
|
|
|
|
#endif
|
2011-11-08 21:34:46 +00:00
|
|
|
.bmp = &lcd_remote_bmp,
|
|
|
|
.bmp_part = &lcd_remote_bmp_part,
|
2012-12-09 06:27:11 +00:00
|
|
|
.nine_segment_bmp = &lcd_remote_nine_segment_bmp,
|
2007-09-18 19:05:35 +00:00
|
|
|
#if LCD_REMOTE_DEPTH > 1
|
|
|
|
#if defined(HAVE_LCD_COLOR)
|
|
|
|
.color_to_native=&lcd_remote_color_to_native,
|
|
|
|
#endif
|
|
|
|
.get_background=&lcd_remote_get_background,
|
|
|
|
.get_foreground=&lcd_remote_get_foreground,
|
|
|
|
.set_background=&lcd_remote_set_background,
|
|
|
|
.set_foreground=&lcd_remote_set_foreground,
|
|
|
|
#endif /* LCD_REMOTE_DEPTH > 1 */
|
|
|
|
.update_rect=&lcd_remote_update_rect,
|
2008-01-08 01:22:14 +00:00
|
|
|
.update_viewport_rect=&lcd_remote_update_viewport_rect,
|
2007-09-18 19:05:35 +00:00
|
|
|
.fillrect=&lcd_remote_fillrect,
|
|
|
|
.drawrect=&lcd_remote_drawrect,
|
2010-10-11 01:19:55 +00:00
|
|
|
.draw_border_viewport=&lcd_remote_draw_border_viewport,
|
|
|
|
.fill_viewport=&lcd_remote_fill_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.drawpixel=&lcd_remote_drawpixel,
|
|
|
|
.drawline=&lcd_remote_drawline,
|
|
|
|
.vline=&lcd_remote_vline,
|
|
|
|
.hline=&lcd_remote_hline,
|
|
|
|
.scroll_step=&lcd_remote_scroll_step,
|
|
|
|
#endif /* 1 */
|
|
|
|
|
|
|
|
.putsxy=&lcd_remote_putsxy,
|
|
|
|
.puts=&lcd_remote_puts,
|
2009-10-17 18:02:48 +00:00
|
|
|
.putsf=&lcd_remote_putsf,
|
2022-11-10 14:38:50 +00:00
|
|
|
.putsxyf=&lcd_remote_putsxyf,
|
2007-09-18 19:05:35 +00:00
|
|
|
.puts_scroll=&lcd_remote_puts_scroll,
|
2013-12-20 22:34:28 +00:00
|
|
|
.putsxy_scroll_func=&lcd_remote_putsxy_scroll_func,
|
2007-09-18 19:05:35 +00:00
|
|
|
.scroll_speed=&lcd_remote_scroll_speed,
|
|
|
|
.scroll_delay=&lcd_remote_scroll_delay,
|
|
|
|
.clear_display=&lcd_remote_clear_display,
|
2008-01-08 01:22:14 +00:00
|
|
|
.clear_viewport=&lcd_remote_clear_viewport,
|
2013-01-31 06:24:19 +00:00
|
|
|
.scroll_stop_viewport_rect=&lcd_remote_scroll_stop_viewport_rect,
|
2008-01-08 01:22:14 +00:00
|
|
|
.scroll_stop=&lcd_remote_scroll_stop,
|
2013-04-03 14:33:23 +00:00
|
|
|
.scroll_stop_viewport=&lcd_remote_scroll_stop_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.update=&lcd_remote_update,
|
2008-01-08 01:22:14 +00:00
|
|
|
.update_viewport=&lcd_remote_update_viewport,
|
2007-09-18 19:05:35 +00:00
|
|
|
.backlight_on=&remote_backlight_on,
|
|
|
|
.backlight_off=&remote_backlight_off,
|
|
|
|
.is_backlight_on=&is_remote_backlight_on,
|
2009-08-06 00:14:40 +00:00
|
|
|
.backlight_set_timeout=&remote_backlight_set_timeout,
|
2020-07-15 23:40:55 +00:00
|
|
|
|
2010-01-28 07:02:35 +00:00
|
|
|
#if LCD_DEPTH > 1
|
2009-08-06 00:14:40 +00:00
|
|
|
.backdrop_load=&remote_backdrop_load,
|
|
|
|
.backdrop_show=&remote_backdrop_show,
|
2010-01-28 07:02:35 +00:00
|
|
|
#endif
|
2013-12-20 22:34:28 +00:00
|
|
|
.put_line = screen_helper_remote_put_line,
|
2007-09-18 19:05:35 +00:00
|
|
|
}
|
2012-01-07 19:35:46 +00:00
|
|
|
#endif /* NB_SCREENS == 2 */
|
2007-09-18 19:05:35 +00:00
|
|
|
};
|
2005-10-28 00:17:15 +00:00
|
|
|
|
2005-11-09 01:17:57 +00:00
|
|
|
void screen_clear_area(struct screen * display, int xstart, int ystart,
|
|
|
|
int width, int height)
|
|
|
|
{
|
|
|
|
display->set_drawmode(DRMODE_SOLID|DRMODE_INVERSEVID);
|
|
|
|
display->fillrect(xstart, ystart, width, height);
|
|
|
|
display->set_drawmode(DRMODE_SOLID);
|
2005-10-28 00:17:15 +00:00
|
|
|
}
|