54
54
#include <defines/d3d_defines.h>
55
55
#include "../common/d3d_common.h"
56
56
#include "../common/d3d9_common.h"
57
- #include "../video_coord_array .h"
57
+ #include "../video_driver .h"
58
58
#include "../../configuration.h"
59
59
#include "../../dynamic.h"
60
60
#include "../../frontend/frontend_driver.h"
@@ -91,7 +91,7 @@ typedef struct hlsl_renderchain
91
91
struct shader_pass stock_shader ;
92
92
} hlsl_renderchain_t ;
93
93
94
- /*
94
+ /*
95
95
* DISPLAY DRIVER
96
96
*/
97
97
@@ -123,7 +123,7 @@ static void *gfx_display_d3d9_hlsl_get_default_mvp(void *data)
123
123
{
124
124
static float id [16 ] = { 1.0f , 0.0f , 0.0f , 0.0f ,
125
125
0.0f , 1.0f , 0.0f , 0.0f ,
126
- 0.0f , 0.0f , 1.0f , 0.0f ,
126
+ 0.0f , 0.0f , 1.0f , 0.0f ,
127
127
0.0f , 0.0f , 0.0f , 1.0f
128
128
};
129
129
return & id ;
@@ -387,7 +387,7 @@ gfx_display_ctx_driver_t gfx_display_ctx_d3d9_hlsl = {
387
387
gfx_display_d3d9_hlsl_scissor_end
388
388
};
389
389
390
- /*
390
+ /*
391
391
* VIDEO DRIVER
392
392
*/
393
393
@@ -596,7 +596,7 @@ static bool hlsl_d3d9_renderchain_create_first_pass(
596
596
int i ;
597
597
struct shader_pass pass = { 0 };
598
598
unsigned fmt =
599
- (_fmt == RETRO_PIXEL_FORMAT_RGB565 )
599
+ (_fmt == RETRO_PIXEL_FORMAT_RGB565 )
600
600
? D3D9_RGB565_FORMAT
601
601
: D3D9_XRGB8888_FORMAT ;
602
602
@@ -844,8 +844,8 @@ static void hlsl_d3d9_renderchain_render_pass(
844
844
struct shader_pass * pass ,
845
845
unsigned pass_index )
846
846
{
847
- /* Currently we override the passes shader program
848
- with the stock shader as at least the last pass
847
+ /* Currently we override the passes shader program
848
+ with the stock shader as at least the last pass
849
849
is not setup correctly */
850
850
#if 0
851
851
d3d9_hlsl_bind_program (chain -> chain .dev , pass );
@@ -856,8 +856,8 @@ static void hlsl_d3d9_renderchain_render_pass(
856
856
IDirect3DDevice9_SetTexture (chain -> chain .dev , 0 ,
857
857
(IDirect3DBaseTexture9 * )pass -> tex );
858
858
859
- /* D3D8 sets the sampler address modes -
860
- I've left them out for the time being
859
+ /* D3D8 sets the sampler address modes -
860
+ I've left them out for the time being
861
861
but maybe this is a bug in d3d9 */
862
862
#if 0
863
863
IDirect3DDevice9_SetSamplerState (chain -> chain .dev ,
@@ -1019,7 +1019,7 @@ static void hlsl_d3d9_renderchain_render(
1019
1019
chain -> chain .frame_count , 0 );
1020
1020
1021
1021
hlsl_d3d9_renderchain_render_pass (chain ,
1022
- from_pass ,
1022
+ from_pass ,
1023
1023
i + 1 );
1024
1024
1025
1025
current_width = out_width ;
@@ -1186,7 +1186,7 @@ static bool d3d9_hlsl_init_chain(d3d9_video_t *d3d,
1186
1186
d3d , (hlsl_renderchain_t * )d3d -> renderchain_data ,
1187
1187
d3d -> dev , & d3d -> final_viewport , & link_info ,
1188
1188
rgb32
1189
- ? RETRO_PIXEL_FORMAT_XRGB8888
1189
+ ? RETRO_PIXEL_FORMAT_XRGB8888
1190
1190
: RETRO_PIXEL_FORMAT_RGB565
1191
1191
)
1192
1192
)
@@ -1234,8 +1234,8 @@ static bool d3d9_hlsl_init_chain(d3d9_video_t *d3d,
1234
1234
chain ,
1235
1235
d3d -> shader .lut [i ].id ,
1236
1236
d3d -> shader .lut [i ].path ,
1237
- d3d -> shader .lut [i ].filter == RARCH_FILTER_UNSPEC
1238
- ? video_smooth
1237
+ d3d -> shader .lut [i ].filter == RARCH_FILTER_UNSPEC
1238
+ ? video_smooth
1239
1239
: (d3d -> shader .lut [i ].filter == RARCH_FILTER_LINEAR )))
1240
1240
{
1241
1241
RARCH_ERR ("[D3D9]: Failed to init LUTs.\n" );
@@ -1452,10 +1452,10 @@ static bool d3d9_hlsl_init_internal(d3d9_video_t *d3d,
1452
1452
windowed_full = settings -> bools .video_windowed_fullscreen ;
1453
1453
1454
1454
full_x = (windowed_full || info -> width == 0 )
1455
- ? (unsigned )(mon_rect .right - mon_rect .left )
1455
+ ? (unsigned )(mon_rect .right - mon_rect .left )
1456
1456
: info -> width ;
1457
1457
full_y = (windowed_full || info -> height == 0 )
1458
- ? (unsigned )(mon_rect .bottom - mon_rect .top )
1458
+ ? (unsigned )(mon_rect .bottom - mon_rect .top )
1459
1459
: info -> height ;
1460
1460
#else
1461
1461
d3d9_get_video_size (d3d , & full_x , & full_y );
@@ -1488,7 +1488,7 @@ static bool d3d9_hlsl_init_internal(d3d9_video_t *d3d,
1488
1488
#ifndef _XBOX_
1489
1489
d3d9_hlsl_fake_context .get_metrics = win32_get_metrics ;
1490
1490
#endif
1491
- video_context_driver_set (& d3d9_hlsl_fake_context );
1491
+ video_context_driver_set (& d3d9_hlsl_fake_context );
1492
1492
{
1493
1493
const char * shader_preset = video_shader_get_current_shader_preset ();
1494
1494
enum rarch_shader_type type = video_shader_parse_type (shader_preset );
@@ -1673,12 +1673,12 @@ static bool d3d9_hlsl_frame(void *data, const void *frame,
1673
1673
hlsl_d3d9_renderchain_render (
1674
1674
d3d , frame , frame_width , frame_height ,
1675
1675
pitch , d3d -> dev_rotation );
1676
-
1676
+
1677
1677
if (black_frame_insertion && !d3d -> menu -> enabled )
1678
1678
{
1679
1679
unsigned n ;
1680
- for (n = 0 ; n < video_info -> black_frame_insertion ; ++ n )
1681
- {
1680
+ for (n = 0 ; n < video_info -> black_frame_insertion ; ++ n )
1681
+ {
1682
1682
#ifdef _XBOX
1683
1683
bool ret = true;
1684
1684
IDirect3DDevice9_Present (d3d -> dev , NULL , NULL , NULL , NULL );
@@ -1691,7 +1691,7 @@ static bool d3d9_hlsl_frame(void *data, const void *frame,
1691
1691
IDirect3DDevice9_Clear (d3d -> dev , 0 , 0 , D3DCLEAR_TARGET ,
1692
1692
0 , 1 , 0 );
1693
1693
}
1694
- }
1694
+ }
1695
1695
1696
1696
#ifdef HAVE_OVERLAY
1697
1697
if (d3d -> overlays_enabled && overlay_behind_menu )
0 commit comments