trunk/src/osd/modules/render/d3d/d3dhlsl.cpp
| r250293 | r250294 | |
| 102 | 102 | |
| 103 | 103 | shaders::~shaders() |
| 104 | 104 | { |
| 105 | last_options = *options; |
| 106 | |
| 105 | 107 | options = NULL; |
| 106 | 108 | |
| 107 | 109 | cache_target *currcache = cachehead; |
| r250293 | r250294 | |
| 677 | 679 | snap_width = winoptions.d3d_snap_width(); |
| 678 | 680 | snap_height = winoptions.d3d_snap_height(); |
| 679 | 681 | |
| 682 | if (last_options.params_init) |
| 683 | { |
| 684 | options = &last_options; |
| 685 | } |
| 686 | |
| 680 | 687 | if (!options->params_init) |
| 681 | 688 | { |
| 682 | 689 | strncpy(options->shadow_mask_texture, winoptions.screen_shadow_mask_texture(), sizeof(options->shadow_mask_texture)); |
| r250293 | r250294 | |
| 2679 | 2686 | return slider_set(&(((hlsl_options*)arg)->bloom_level10_weight), 0.01f, "%1.2f", str, newval); |
| 2680 | 2687 | } |
| 2681 | 2688 | |
| 2689 | hlsl_options shaders::last_options; |
| 2682 | 2690 | |
| 2683 | | //============================================================ |
| 2684 | | // init_slider_list |
| 2685 | | //============================================================ |
| 2686 | | |
| 2687 | 2691 | shaders::slider_desc shaders::s_sliders[] = |
| 2688 | 2692 | { |
| 2689 | 2693 | { "Vector Length Attenuation", 0, 80, 100, 1, 2, slider_vector_attenuation }, |
| r250293 | r250294 | |
| 2763 | 2767 | { NULL, 0, 0, 0, 0, 0, NULL }, |
| 2764 | 2768 | }; |
| 2765 | 2769 | |
| 2770 | |
| 2771 | //============================================================ |
| 2772 | // init_slider_list |
| 2773 | //============================================================ |
| 2774 | |
| 2766 | 2775 | slider_state *shaders::init_slider_list() |
| 2767 | 2776 | { |
| 2768 | 2777 | if (!master_enable || !d3dintf->post_fx_available) |