Use d3d_device_get_backbuffer

This commit is contained in:
twinaphex 2018-01-03 16:25:45 +01:00
parent 06366c9c85
commit 0e337bb110
2 changed files with 3 additions and 2 deletions

View File

@ -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));

View File

@ -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)