Felix Arends | 144bc70 | 2002-04-25 04:41:45 +0000 | [diff] [blame] | 1 | /*************************************************************************** |
| 2 | * __________ __ ___. |
| 3 | * Open \______ \ ____ ____ | | _\_ |__ _______ ___ |
| 4 | * Source | _// _ \_/ ___\| |/ /| __ \ / _ \ \/ / |
| 5 | * Jukebox | | ( <_> ) \___| < | \_\ ( <_> > < < |
| 6 | * Firmware |____|_ /\____/ \___ >__|_ \|___ /\____/__/\_ \ |
| 7 | * \/ \/ \/ \/ \/ |
Felix Arends | a6ca085 | 2002-04-27 15:20:53 +0000 | [diff] [blame] | 8 | * $Id$ |
Felix Arends | 144bc70 | 2002-04-25 04:41:45 +0000 | [diff] [blame] | 9 | * |
| 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 Arends | ffb9e3a | 2002-04-27 17:02:17 +0000 | [diff] [blame] | 28 | #define UI_LCD_BGCOLOR 46, 67, 49 // bkgnd color of LCD (no backlight) |
Felix Arends | 664b2f7 | 2002-04-30 21:15:02 +0000 | [diff] [blame] | 29 | //#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 Arends | 7017fce | 2002-04-26 05:37:29 +0000 | [diff] [blame] | 31 | #define UI_LCD_BLACK 0, 0, 0 // black |
Felix Arends | 144bc70 | 2002-04-25 04:41:45 +0000 | [diff] [blame] | 32 | #define UI_LCD_POSX 59 // x position of lcd |
| 33 | #define UI_LCD_POSY 95 // y position of lcd |
| 34 | |
Felix Arends | 0053ec0 | 2002-06-12 15:39:39 +0000 | [diff] [blame] | 35 | #define TM_YIELD WM_USER + 101 // thread message for yield |
Felix Arends | 0707946 | 2002-06-15 10:58:14 +0000 | [diff] [blame] | 36 | #define TIMER_EVENT 0x34928340 |
Felix Arends | 0053ec0 | 2002-06-12 15:39:39 +0000 | [diff] [blame] | 37 | |
Felix Arends | 144bc70 | 2002-04-25 04:41:45 +0000 | [diff] [blame] | 38 | extern HWND hGUIWnd; // the GUI window handle |
| 39 | extern unsigned int uThreadID; // id of mod thread |
Felix Arends | 647661c | 2002-06-01 20:56:38 +0000 | [diff] [blame] | 40 | extern bool bActive; |
Felix Arends | 144bc70 | 2002-04-25 04:41:45 +0000 | [diff] [blame] | 41 | |
| 42 | // typedefs |
| 43 | typedef unsigned char uchar; |
| 44 | typedef unsigned int uint32; |
| 45 | |
| 46 | #endif // #ifndef __UISW32_H__ |