blob: 7b38c769874b42508f12dd493da861277776c1ad [file] [log] [blame]
Felix Arends144bc702002-04-25 04:41:45 +00001/***************************************************************************
2 * __________ __ ___.
3 * Open \______ \ ____ ____ | | _\_ |__ _______ ___
4 * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ /
5 * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < <
6 * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \
7 * \/ \/ \/ \/ \/
Felix Arendsa6ca0852002-04-27 15:20:53 +00008 * $Id$
Felix Arends144bc702002-04-25 04:41:45 +00009 *
10 * Copyright (C) 2002 by Felix Arends
11 *
12 * All files in this archive are subject to the GNU General Public License.
13 * See the file COPYING in the source tree root for full license agreement.
14 *
15 * This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY
16 * KIND, either express or implied.
17 *
18 ****************************************************************************/
19
20#ifndef __UISW32_H__
21#define __UISW32_H__
22
23#include <windows.h>
24#include "lcd-win32.h"
25
26#define UI_WIDTH 240 // width of GUI window
27#define UI_HEIGHT 360 // height of GUI window
Felix Arendsffb9e3a2002-04-27 17:02:17 +000028#define UI_LCD_BGCOLOR 46, 67, 49 // bkgnd color of LCD (no backlight)
Felix Arends664b2f72002-04-30 21:15:02 +000029//#define UI_LCD_BGCOLORLIGHT 56, 77, 59 // bkgnd color of LCD (backlight)
30#define UI_LCD_BGCOLORLIGHT 109, 212, 68 // bkgnd color of LCD (backlight)
Felix Arends7017fce2002-04-26 05:37:29 +000031#define UI_LCD_BLACK 0, 0, 0 // black
Felix Arends144bc702002-04-25 04:41:45 +000032#define UI_LCD_POSX 59 // x position of lcd
33#define UI_LCD_POSY 95 // y position of lcd
34
Felix Arends0053ec02002-06-12 15:39:39 +000035#define TM_YIELD WM_USER + 101 // thread message for yield
Felix Arends07079462002-06-15 10:58:14 +000036#define TIMER_EVENT 0x34928340
Felix Arends0053ec02002-06-12 15:39:39 +000037
Felix Arends144bc702002-04-25 04:41:45 +000038extern HWND hGUIWnd; // the GUI window handle
39extern unsigned int uThreadID; // id of mod thread
Felix Arends647661c2002-06-01 20:56:38 +000040extern bool bActive;
Felix Arends144bc702002-04-25 04:41:45 +000041
42// typedefs
43typedef unsigned char uchar;
44typedef unsigned int uint32;
45
46#endif // #ifndef __UISW32_H__