Mercurial > hg > xmms-sid
comparison src/xs_sidplay2.cc @ 577:fdddab8f0c1b
Scrubbing through the filter configuration code; Configuration dialog
window delete event was not handled and caused problems if WM's "close window"
was used, fixed.
author | Matti Hamalainen <ccr@tnsp.org> |
---|---|
date | Tue, 20 Mar 2007 13:43:00 +0000 |
parents | 4674e3c37121 |
children | acaba070cf49 |
comparison
equal
deleted
inserted
replaced
576:7d08a5adc162 | 577:fdddab8f0c1b |
---|---|
202 } | 202 } |
203 | 203 |
204 /* Convert filter */ | 204 /* Convert filter */ |
205 f = &(xs_cfg.sid2Filter); | 205 f = &(xs_cfg.sid2Filter); |
206 XSDEBUG("using filter '%s', %d points\n", f->name, f->npoints); | 206 XSDEBUG("using filter '%s', %d points\n", f->name, f->npoints); |
207 if (f->npoints > XS_SIDPLAY2_NFPOINTS) { | |
208 xs_error(_("[SIDPlay2] Invalid number of filter curve points (%d > %d)\n"), | |
209 f->npoints, XS_SIDPLAY2_NFPOINTS); | |
210 f->npoints = XS_SIDPLAY2_NFPOINTS; | |
211 } | |
207 | 212 |
208 tmpFilter.points = f->npoints; | 213 tmpFilter.points = f->npoints; |
209 for (i = 0; i < f->npoints; i++) { | 214 for (i = 0; i < f->npoints; i++) { |
210 tmpFilter.cutoff[i][0] = f->points[i].x; | 215 tmpFilter.cutoff[i][0] = f->points[i].x; |
211 tmpFilter.cutoff[i][1] = f->points[i].y; | 216 tmpFilter.cutoff[i][1] = f->points[i].y; |