Musepack speed optimization. Speep up 64 bit precision synthesizer by another 1.5MHz...
[kugel-rb.git] / apps / gui / viewport.h
blob1917b7b81732232e63bcceb54d371c99684ecc57
2 /***************************************************************************
3 * __________ __ ___.
4 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
5 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
6 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
7 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
8 * \/ \/ \/ \/ \/
9 * $Id$
11 * Copyright (C) 2008 by Jonathan Gordon
13 * All files in this archive are subject to the GNU General Public License.
14 * See the file COPYING in the source tree root for full license agreement.
16 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
17 * KIND, either express or implied.
19 ****************************************************************************/
21 #include "config.h"
22 #include "lcd.h"
23 #include "font.h"
24 #include "kernel.h"
25 #include "system.h"
26 #include "misc.h"
27 #include "screen_access.h"
29 /* return the number of text lines in the vp viewport */
30 int viewport_get_nb_lines(struct viewport *vp);
32 #define VP_ERROR 0
33 #define VP_DIMENSIONS 0x1
34 #define VP_COLORS 0x2
35 #define VP_SELECTIONCOLORS 0x4
36 /* load a viewport struct from a config string.
37 returns a combination of the above to say which were loaded ok from the string */
38 int viewport_load_config(const char *config, struct viewport *vp);
40 void viewport_set_defaults(struct viewport *vp, enum screen_type screen);