win32: Only display first 500 shader parameters.

Mega-Bezel is absurd. There's no need for all those parameters.
This commit is contained in:
BearOso 2023-03-13 13:31:32 -05:00
parent cc0a87711a
commit c64e99f504
1 changed files with 2 additions and 2 deletions

View File

@ -286,7 +286,7 @@ void CShaderParamDlg::createContent(HWND hDlg)
unsigned int top = MARGIN;
parameter_widgets.clear();
for(int i = 0; i < parameters.size(); i++) {
for(int i = 0; i < parameters.size() && i < 500; i++) {
ParameterWidgetSet widgets{};
ShaderParam &p = parameters[i];
TCHAR desc[270];
@ -370,7 +370,7 @@ void CShaderParamDlg::handle_up_down(HWND hStatic, int id, int change)
void CShaderParamDlg::get_changed_parameters(HWND hDlg)
{
HWND parent = GetDlgItem(hDlg, IDC_STATIC_CONTAINER);
for(int i = 0; i < parameters.size(); i++) {
for(int i = 0; i < parameters.size() && i < 500; i++) {
ShaderParam &p = parameters[i];
TCHAR val[100];
HWND hEdit = GetDlgItem(parent, IDC_PARAMS_START_EDIT + i);