From 6c09195f5e8b5c75ac0f3c8fb14b7d2844afe298 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Thu, 3 May 2018 22:08:14 +0200 Subject: [PATCH] (D3D8/D3D9) Updates --- gfx/drivers/d3d8.c | 2 +- gfx/drivers_renderchain/d3d9_cg_renderchain.c | 2 +- menu/drivers_display/menu_display_d3d9.c | 6 +++--- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/gfx/drivers/d3d8.c b/gfx/drivers/d3d8.c index 6045bf4b92..50e8f1537a 100644 --- a/gfx/drivers/d3d8.c +++ b/gfx/drivers/d3d8.c @@ -330,7 +330,7 @@ static bool d3d8_renderchain_init(void *data, video_driver_get_size(&width, &height); - chain->dev = (LPDIRECT3DDEVICE8)dev_data; + chain->dev = dev_data; chain->pixel_size = (fmt == RETRO_PIXEL_FORMAT_RGB565) ? 2 : 4; chain->tex_w = link_info->tex_w; chain->tex_h = link_info->tex_h; diff --git a/gfx/drivers_renderchain/d3d9_cg_renderchain.c b/gfx/drivers_renderchain/d3d9_cg_renderchain.c index dc25faa926..a5a75b3146 100644 --- a/gfx/drivers_renderchain/d3d9_cg_renderchain.c +++ b/gfx/drivers_renderchain/d3d9_cg_renderchain.c @@ -1633,7 +1633,7 @@ static bool d3d9_cg_renderchain_read_viewport( LPDIRECT3DSURFACE9 dest = NULL; bool ret = true; d3d9_video_t *d3d = (d3d9_video_t*)data; - LPDIRECT3DDEVICE9 d3dr = (LPDIRECT3DDEVICE9)d3d->dev; + LPDIRECT3DDEVICE9 d3dr = d3d->dev; video_driver_get_size(&width, &height); diff --git a/menu/drivers_display/menu_display_d3d9.c b/menu/drivers_display/menu_display_d3d9.c index f89bd4d3d4..c99396e5b7 100644 --- a/menu/drivers_display/menu_display_d3d9.c +++ b/menu/drivers_display/menu_display_d3d9.c @@ -87,7 +87,7 @@ static void menu_display_d3d9_blend_begin(video_frame_info_t *video_info) if (!d3d) return; - d3d9_enable_blend_func((LPDIRECT3DDEVICE9)d3d->dev); + d3d9_enable_blend_func(d3d->dev); } static void menu_display_d3d9_blend_end(video_frame_info_t *video_info) @@ -98,7 +98,7 @@ static void menu_display_d3d9_blend_end(video_frame_info_t *video_info) if (!d3d) return; - d3d9_disable_blend_func((LPDIRECT3DDEVICE9)d3d->dev); + d3d9_disable_blend_func(d3d->dev); } static void menu_display_d3d9_viewport(void *data, video_frame_info_t *video_info) @@ -140,7 +140,7 @@ static void menu_display_d3d9_draw(void *data, video_frame_info_t *video_info) if (!d3d || !draw || draw->pipeline.id) return; - dev = (LPDIRECT3DDEVICE9)d3d->dev; + dev = d3d->dev; if((d3d->menu_display.offset + draw->coords->vertices ) > (unsigned)d3d->menu_display.size)