mirror of
https://github.com/WinampDesktop/winamp.git
synced 2025-06-10 11:59:58 -05:00
Initial community commit
This commit is contained in:
41
Src/Winamp/VideoConfigGroup.cpp
Normal file
41
Src/Winamp/VideoConfigGroup.cpp
Normal file
@@ -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
|
Reference in New Issue
Block a user