diff options
author | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
---|---|---|
committer | Jef <jef@targetspot.com> | 2024-09-24 08:54:57 -0400 |
commit | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/VideoConfigGroup.cpp | |
parent | 537bcbc86291b32fc04ae4133ce4d7cac8ebe9a7 (diff) | |
download | winamp-20d28e80a5c861a9d5f449ea911ab75b4f37ad0d.tar.gz |
Initial community commit
Diffstat (limited to 'Src/Winamp/VideoConfigGroup.cpp')
-rw-r--r-- | Src/Winamp/VideoConfigGroup.cpp | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/Src/Winamp/VideoConfigGroup.cpp b/Src/Winamp/VideoConfigGroup.cpp new file mode 100644 index 00000000..d9b8e5f5 --- /dev/null +++ b/Src/Winamp/VideoConfigGroup.cpp @@ -0,0 +1,41 @@ +/** (c) Nullsoft, Inc. C O N F I D E N T I A L + ** Filename: + ** Project: + ** Description: + ** Author: Ben Allison benski@nullsoft.com + ** Created: + **/ +#include "main.h" +#include "VideoConfigGroup.h" +#include "WinampAttributes.h" + + +ifc_configitem *VideoConfigGroup::GetItem(const wchar_t *name) +{ + if (!wcscmp(name, L"overlay")) + return &config_video_overlays; + else if (!wcscmp(name, L"YV12")) + return &config_video_yv12; + else if (!wcscmp(name, L"vsync")) + return &config_video_vsync2; + else if (!wcscmp(name, L"ddraw")) + return &config_video_ddraw; + else if (!wcscmp(name, L"gdiplus")) + return &config_video_gdiplus; + else if (!wcscmp(name, L"autoopen")) + return &config_video_autoopen; + else if (!wcscmp(name, L"autoclose")) + return &config_video_autoclose; + else if (!wcscmp(name, L"auto_fs")) + return &config_video_auto_fs; + + return 0; +} + + +#define CBCLASS VideoConfigGroup +START_DISPATCH; +CB(IFC_CONFIGGROUP_GETITEM, GetItem) +CB(IFC_CONFIGGROUP_GETGUID, GetGUID) +END_DISPATCH; +#undef CBCLASS
\ No newline at end of file |