diff options
author | Jean-Francois Mauguit <jfmauguit@mac.com> | 2024-09-24 09:03:25 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-09-24 09:03:25 -0400 |
commit | bab614c421ed7ae329d26bf028c4a3b1d2450f5a (patch) | |
tree | 12f17f78986871dd2cfb0a56e5e93b545c1ae0d0 /Src/Winamp/VideoConfigGroup.cpp | |
parent | 4bde6044fddf053f31795b9eaccdd2a5a527d21f (diff) | |
parent | 20d28e80a5c861a9d5f449ea911ab75b4f37ad0d (diff) | |
download | winamp-bab614c421ed7ae329d26bf028c4a3b1d2450f5a.tar.gz |
Merge pull request #5 from WinampDesktop/community
Merge to main
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 |