mirror of
https://github.com/libretro/RetroArch
synced 2025-01-18 04:12:07 +00:00
(D3D8/D3D9) Updates
This commit is contained in:
parent
6d019284f8
commit
6c09195f5e
@ -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;
|
||||
|
@ -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);
|
||||
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user