Previous 199869 Revisions Next

r41380 Sunday 25th October, 2015 at 22:11:54 UTC by Jezze
Fixed Beam Width Options

- beam width min. and max. could not be set higher than 1.0 in UI
[src/emu/ui]ui.c

trunk/src/emu/ui/ui.c
r249891r249892
19691969         // add vector control
19701970         *tailptr = slider_alloc(machine, "Vector Flicker", 0, 0, 1000, 10, slider_flicker, NULL);
19711971         tailptr = &(*tailptr)->next;
1972         *tailptr = slider_alloc(machine, "Beam Width Minimum", 10, 100, 1000, 10, slider_beam_min, NULL);
1972         *tailptr = slider_alloc(machine, "Beam Width Minimum", 1, 100, 1000, 1, slider_beam_min, NULL);
19731973         tailptr = &(*tailptr)->next;
1974         *tailptr = slider_alloc(machine, "Beam Width Maximum", 10, 100, 1000, 10, slider_beam_max, NULL);
1974         *tailptr = slider_alloc(machine, "Beam Width Maximum", 1, 100, 1000, 1, slider_beam_max, NULL);
19751975         tailptr = &(*tailptr)->next;
19761976         *tailptr = slider_alloc(machine, "Beam Intensity Weight", -1000, 0, 1000, 10, slider_beam_intensity_weight, NULL);
19771977         tailptr = &(*tailptr)->next;
r249891r249892
23622362{
23632363   vector_device *vector = NULL;
23642364   if (newval != SLIDER_NOCHANGE)
2365      vector->set_beam_min(MIN((float)newval * 0.001f, vector->get_beam_max()));
2365      vector->set_beam_min(MIN((float)newval * 0.01f, vector->get_beam_max()));
23662366   if (str != NULL)
23672367      strprintf(*str,"%1.2f", (double) vector->get_beam_min());
2368   return floor(vector->get_beam_min() * 1000.0f + 0.5f);
2368   return floor(vector->get_beam_min() * 100.0f + 0.5f);
23692369}
23702370
23712371
r249891r249892
23782378{
23792379   vector_device *vector = NULL;
23802380   if (newval != SLIDER_NOCHANGE)
2381      vector->set_beam_max(MAX((float)newval * 0.001f, vector->get_beam_min()));
2381      vector->set_beam_max(MAX((float)newval * 0.01f, vector->get_beam_min()));
23822382   if (str != NULL)
23832383      strprintf(*str,"%1.2f", (double) vector->get_beam_max());
2384   return floor(vector->get_beam_max() * 1000.0f + 0.5f);
2384   return floor(vector->get_beam_max() * 100.0f + 0.5f);
23852385}
23862386
23872387


Previous 199869 Revisions Next


© 1997-2024 The MAME Team