mirror of
https://github.com/holub/mame
synced 2025-06-05 20:33:45 +03:00
(nw) Fixed sliders and phosphor offset
This commit is contained in:
parent
6f52503894
commit
aa19b2633c
@ -80,7 +80,7 @@ VS_OUTPUT vs_main(VS_INPUT Input)
|
||||
Output.Color = Input.Color;
|
||||
|
||||
float2 InvTexSize = float2(1.0f / TextureWidth, 1.0f / TextureHeight);
|
||||
Output.TexCoord = Input.TexCoord + float2(1.0f, 1.0f) * InvTexSize;
|
||||
Output.TexCoord = Input.TexCoord + float2(0.5f, 0.5f) * InvTexSize;
|
||||
Output.PrevCoord = Output.TexCoord;
|
||||
|
||||
return Output;
|
||||
|
@ -716,8 +716,6 @@ void hlsl_info::init(d3d_base *d3dintf, win_window_info *window)
|
||||
if (!d3dintf->post_fx_available)
|
||||
return;
|
||||
|
||||
g_slider_list = init_slider_list();
|
||||
|
||||
this->d3dintf = d3dintf;
|
||||
this->window = window;
|
||||
|
||||
@ -991,6 +989,8 @@ void hlsl_info::init(d3d_base *d3dintf, win_window_info *window)
|
||||
emu_file file(window->machine().options().art_path(), OPEN_FLAG_READ);
|
||||
|
||||
render_load_png(shadow_bitmap, file, NULL, options->shadow_mask_texture);
|
||||
|
||||
g_slider_list = init_slider_list();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user