1
0

shell_defines.h 2.6 KB

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