1 /*
2   LICENSE
3   -------
4 Copyright 2005-2013 Nullsoft, Inc.
5 All rights reserved.
6 
7 Redistribution and use in source and binary forms, with or without modification,
8 are permitted provided that the following conditions are met:
9 
10   * Redistributions of source code must retain the above copyright notice,
11     this list of conditions and the following disclaimer.
12 
13   * Redistributions in binary form must reproduce the above copyright notice,
14     this list of conditions and the following disclaimer in the documentation
15     and/or other materials provided with the distribution.
16 
17   * Neither the name of Nullsoft nor the names of its contributors may be used to
18     endorse or promote products derived from this software without specific prior written permission.
19 
20 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR
21 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
22 FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
23 CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24 DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
25 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
26 IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
27 OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */
29 
30 #ifndef __NULLSOFT_DX9_PLUGIN_SHELL_SHELL_DEFINES_H__
31 #define __NULLSOFT_DX9_PLUGIN_SHELL_SHELL_DEFINES_H__ 1
32 
33 #include <windows.h>
34 
35 #define DEFAULT_FULLSCREEN_WIDTH  640
36 #define DEFAULT_FULLSCREEN_HEIGHT 480
37 #define MAX_ICON_TEXTURES 8
38 #define ICON_TEXTURE_SIZE 256
39 #define DEFAULT_WINDOW_SIZE 0.625f      // as a portion of the width or height of the screen (whichever is smaller)
40 #define DESKTOP_MODE_KEYBOARD_INPUT_WINDOW_CLASSNAME "DESKTOP MODE KEYBOARD INPUT WINDOW"
41 #define BGR2RGB(x) (((x>>16)&0xFF) | (x & 0xFF00) | ((x<<16)&0xFF0000))
42 
43 #define NUM_BASIC_FONTS 4
44 #define  SYS_FONT 0
45 #define  DEC_FONT 1
46 #define  HELP_FONT 2
47 #define  DESK_FONT 3
48 #define MAX_EXTRA_FONTS 5
49 typedef enum
50 {
51     SIMPLE_FONT = 0,  // aka 'system' font; should be legible
52     DECORATIVE_FONT = 1,
53     HELPSCREEN_FONT = 2,
54     PLAYLIST_FONT = 3,
55     EXTRA_1 = 4,
56     EXTRA_2 = 5,
57     EXTRA_3 = 6,
58     EXTRA_4 = 7,
59     EXTRA_5 = 8
60 }
61 eFontIndex;
62 
63 // for m_screenmode:
64 typedef enum
65 {
66     NOT_YET_KNOWN   = -1,
67     FULLSCREEN      =  0,
68     WINDOWED        =  1,
69     FAKE_FULLSCREEN =  2,
70     DESKTOP         =  3       // doesn't use overlays! =)
71 }
72 eScrMode;
73 
74 #include "../Winamp/wa_ipc.h"
75 
76 #endif