mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
(XDK) Update init function
This commit is contained in:
parent
78150259dc
commit
becf52bcf4
@ -22,6 +22,8 @@ typedef struct xdk_renderchain
|
|||||||
{
|
{
|
||||||
void *empty;
|
void *empty;
|
||||||
unsigned pixel_size;
|
unsigned pixel_size;
|
||||||
|
LPDIRECT3DDEVICE dev;
|
||||||
|
const video_info_t *video_info;
|
||||||
LPDIRECT3DTEXTURE tex;
|
LPDIRECT3DTEXTURE tex;
|
||||||
LPDIRECT3DVERTEXBUFFER vertex_buf;
|
LPDIRECT3DVERTEXBUFFER vertex_buf;
|
||||||
unsigned last_width;
|
unsigned last_width;
|
||||||
@ -320,12 +322,12 @@ static bool xdk_renderchain_init(void *data,
|
|||||||
global_t *global = global_get_ptr();
|
global_t *global = global_get_ptr();
|
||||||
const video_info_t *info = (const video_info_t*)_info;
|
const video_info_t *info = (const video_info_t*)_info;
|
||||||
const LinkInfo *link_info = (const LinkInfo*)info_data;
|
const LinkInfo *link_info = (const LinkInfo*)info_data;
|
||||||
chain->pixel_size = fmt ? sizeof(uint32_t) : sizeof(uint16_t);
|
|
||||||
|
|
||||||
(void)dev_data;
|
|
||||||
(void)final_viewport_data;
|
(void)final_viewport_data;
|
||||||
(void)fmt;
|
(void)fmt;
|
||||||
|
|
||||||
|
chain->dev = (LPDIRECT3DDEVICE)dev_data;
|
||||||
|
chain->pixel_size = (fmt == RETRO_PIXEL_FORMAT_RGB565) ? 2 : 4;
|
||||||
chain->tex_w = link_info->tex_w;
|
chain->tex_w = link_info->tex_w;
|
||||||
chain->tex_h = link_info->tex_h;
|
chain->tex_h = link_info->tex_h;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user