mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 10:10:57 +00:00
Use d3d_device_get_backbuffer
This commit is contained in:
parent
06366c9c85
commit
0e337bb110
@ -95,7 +95,7 @@ static void xfonts_render_msg(
|
||||
y = video_info->font_msg_pos_y;
|
||||
}
|
||||
|
||||
xfonts->d3d->dev->GetBackBuffer(-1, D3DBACKBUFFER_TYPE_MONO, &xfonts->surf);
|
||||
d3d_device_get_backbuffer(xfonts->d3d->dev, -1, 0, D3DBACKBUFFER_TYPE_MONO, &xfonts->surf);
|
||||
|
||||
mbstowcs(str, msg, sizeof(str) / sizeof(wchar_t));
|
||||
|
||||
|
@ -241,7 +241,8 @@ static bool screenshot_dump(
|
||||
}
|
||||
|
||||
#ifdef _XBOX1
|
||||
d3d->dev->GetBackBuffer(-1, D3DBACKBUFFER_TYPE_MONO, &state->surf);
|
||||
d3d_device_get_backbuffer(d3d->dev, -1, 0, D3DBACKBUFFER_TYPE_MONO,
|
||||
&state->surf);
|
||||
#elif defined(HAVE_RPNG)
|
||||
buf = (uint8_t*)malloc(width * height * 3);
|
||||
if (!buf)
|
||||
|
Loading…
Reference in New Issue
Block a user