summaryrefslogtreecommitdiff
path: root/apps/gui/skin_engine/skin_engine.h
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gui/skin_engine/skin_engine.h')
-rw-r--r--apps/gui/skin_engine/skin_engine.h33
1 files changed, 31 insertions, 2 deletions
diff --git a/apps/gui/skin_engine/skin_engine.h b/apps/gui/skin_engine/skin_engine.h
index 69991ab587..9845d8ca8a 100644
--- a/apps/gui/skin_engine/skin_engine.h
+++ b/apps/gui/skin_engine/skin_engine.h
@@ -23,7 +23,10 @@
23#ifndef _SKIN_ENGINE_H 23#ifndef _SKIN_ENGINE_H
24#define _SKIN_ENGINE_H 24#define _SKIN_ENGINE_H
25 25
26#include "skin_buffer.h" 26#ifndef PLUGIN
27
28#include "skin_fonts.h"
29#include "tag_table.h"
27 30
28#include "wps_internals.h" /* TODO: remove this line.. shoudlnt be needed */ 31#include "wps_internals.h" /* TODO: remove this line.. shoudlnt be needed */
29 32
@@ -39,13 +42,37 @@ enum skinnable_screens {
39}; 42};
40 43
41 44
45#ifdef HAVE_LCD_BITMAP
46#define MAIN_BUFFER ((2*LCD_HEIGHT*LCD_WIDTH*LCD_DEPTH/8) \
47 + (SKINNABLE_SCREENS_COUNT * LCD_BACKDROP_BYTES))
48
49#if (NB_SCREENS > 1)
50#define REMOTE_BUFFER (2*(LCD_REMOTE_HEIGHT*LCD_REMOTE_WIDTH*LCD_REMOTE_DEPTH/8) \
51 + (SKINNABLE_SCREENS_COUNT * REMOTE_LCD_BACKDROP_BYTES))
52#else
53#define REMOTE_BUFFER 0
54#endif
55
56
57#define SKIN_BUFFER_SIZE (MAIN_BUFFER + REMOTE_BUFFER + SKIN_FONT_SIZE) + \
58 (WPS_MAX_TOKENS * \
59 (sizeof(struct wps_token) + (sizeof(struct skin_element))))
60#endif
61
62#ifdef HAVE_LCD_CHARCELLS
63#define SKIN_BUFFER_SIZE (LCD_HEIGHT * LCD_WIDTH) * 64 + \
64 (WPS_MAX_TOKENS * \
65 (sizeof(struct wps_token) + (sizeof(struct skin_element))))
66#endif
67
68
42#ifdef HAVE_TOUCHSCREEN 69#ifdef HAVE_TOUCHSCREEN
43int skin_get_touchaction(struct wps_data *data, int* edge_offset); 70int skin_get_touchaction(struct wps_data *data, int* edge_offset);
44void skin_disarm_touchregions(struct wps_data *data); 71void skin_disarm_touchregions(struct wps_data *data);
45#endif 72#endif
46 73
47/* Do a update_type update of the skinned screen */ 74/* Do a update_type update of the skinned screen */
48bool skin_update(struct gui_wps *gwps, unsigned int update_type); 75void skin_update(struct gui_wps *gwps, unsigned int update_type);
49 76
50/* 77/*
51 * setup up the skin-data from a format-buffer (isfile = false) 78 * setup up the skin-data from a format-buffer (isfile = false)
@@ -72,3 +99,5 @@ void skin_backdrop_init(void);
72 */ 99 */
73int skin_wait_for_action(struct gui_wps *gwps, int context, int timeout); 100int skin_wait_for_action(struct gui_wps *gwps, int context, int timeout);
74#endif 101#endif
102
103#endif