Subversion Repositories filter_foundry

Rev

Rev 368 | Rev 381 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 368 Rev 376
Line 124... Line 124...
124
                GetDlgItemText(dp,COPYRIGHTITEM,s,MAXFIELD);    myc2pstrcpy(gdata->parm.copyright,s);
124
                GetDlgItemText(dp,COPYRIGHTITEM,s,MAXFIELD);    myc2pstrcpy(gdata->parm.copyright,s);
125
                GetDlgItemText(dp,AUTHORITEM,s,MAXFIELD);               myc2pstrcpy(gdata->parm.author,s);
125
                GetDlgItemText(dp,AUTHORITEM,s,MAXFIELD);               myc2pstrcpy(gdata->parm.author,s);
126
                gdata->parm.cbSize = PARM_SIZE;
126
                gdata->parm.cbSize = PARM_SIZE;
127
                gdata->parm.standalone = 1;  //0=original FF, 1=standalone filter
127
                gdata->parm.standalone = 1;  //0=original FF, 1=standalone filter
128
                needui = 0;
128
                needui = 0;
-
 
129
                // Sliders
129
                for(i = 0; i < 8; ++i){
130
                for(i = 0; i < 8; ++i){
130
                        gdata->parm.val[i] = slider[i];
131
                        gdata->parm.val[i] = slider[i];
131
                        gdata->parm.ctl_used[i] = ctls[i] || (checksliders_result & CHECKSLIDERS_CTL_AMBIGUOUS);
132
                        gdata->parm.ctl_used[i] = ctls[i] || (checksliders_result & CHECKSLIDERS_CTL_AMBIGUOUS);
132
                        needui |= gdata->parm.ctl_used[i];
133
                        needui |= gdata->parm.ctl_used[i];
133
                        GetDlgItemText(dp,FIRSTCTLNAMEITEM+i,s,MAXFIELD); myc2pstrcpy(gdata->parm.ctl[i],s);
134
                        GetDlgItemText(dp,FIRSTCTLNAMEITEM+i,s,MAXFIELD); myc2pstrcpy(gdata->parm.ctl[i],s);
134
                }
135
                }
-
 
136
                // Maps
135
                for(i = 0; i < 4; ++i){
137
                for (i = 0; i < 4; ++i) {
136
                        gdata->parm.map_used[i] = maps[i] || (checksliders_result & CHECKSLIDERS_MAP_AMBIGUOUS);
138
                        gdata->parm.map_used[i] = maps[i] || (checksliders_result & CHECKSLIDERS_MAP_AMBIGUOUS);
137
                        needui |= gdata->parm.map_used[i];
139
                        needui |= gdata->parm.map_used[i];
138
                        GetDlgItemText(dp,FIRSTMAPNAMEITEM+i,s,MAXFIELD); myc2pstrcpy(gdata->parm.map[i],s);
140
                        GetDlgItemText(dp, FIRSTMAPNAMEITEM + i, s, MAXFIELD); myc2pstrcpy(gdata->parm.map[i], s);
-
 
141
                }
-
 
142
                // Expressions
-
 
143
                for (i = 0; i < 4; ++i) {
139
                        if (!expr[i]) {
144
                        if (!expr[i]) {
140
                                simplealert("Bug! see builddlgitem");
145
                                simplealert("Bug! see builddlgitem");
141
                                return true; // keep going. Let the user try again
146
                                return true; // keep going. Let the user try again
142
                        }
147
                        }
143
                        if (strlen(expr[i]) >= sizeof(gdata->parm.formula[i])) {
148
                        if (strlen(expr[i]) >= sizeof(gdata->parm.formula[i])) {