mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-01-27 06:11:51 +00:00
style
This commit is contained in:
parent
34b2a3b210
commit
29fa71b664
@ -494,9 +494,9 @@ D3DVideo::~D3DVideo()
|
|||||||
{
|
{
|
||||||
deinit();
|
deinit();
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
if(overlay.tex)
|
if (overlay.tex)
|
||||||
overlay.tex->Release();
|
overlay.tex->Release();
|
||||||
if(overlay.vert_buf)
|
if (overlay.vert_buf)
|
||||||
overlay.vert_buf->Release();
|
overlay.vert_buf->Release();
|
||||||
#endif
|
#endif
|
||||||
if (dev)
|
if (dev)
|
||||||
@ -573,7 +573,7 @@ bool D3DVideo::frame(const void *frame,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
if(overlay.overlay_enabled)
|
if (overlay.overlay_enabled)
|
||||||
{
|
{
|
||||||
overlay_render();
|
overlay_render();
|
||||||
}
|
}
|
||||||
@ -1181,7 +1181,7 @@ void D3DVideo::resize(unsigned new_width, unsigned new_height)
|
|||||||
#ifdef HAVE_OVERLAY
|
#ifdef HAVE_OVERLAY
|
||||||
bool D3DVideo::overlay_load(const uint32_t *image, unsigned width, unsigned height)
|
bool D3DVideo::overlay_load(const uint32_t *image, unsigned width, unsigned height)
|
||||||
{
|
{
|
||||||
if(overlay.tex)
|
if (overlay.tex)
|
||||||
overlay.tex->Release();
|
overlay.tex->Release();
|
||||||
if (FAILED(dev->CreateTexture(width, height, 1,
|
if (FAILED(dev->CreateTexture(width, height, 1,
|
||||||
0,
|
0,
|
||||||
@ -1258,7 +1258,7 @@ void D3DVideo::overlay_render()
|
|||||||
float r, g, b, a;
|
float r, g, b, a;
|
||||||
} vert[4];
|
} vert[4];
|
||||||
|
|
||||||
if(!overlay.vert_buf)
|
if (!overlay.vert_buf)
|
||||||
{
|
{
|
||||||
dev->CreateVertexBuffer(
|
dev->CreateVertexBuffer(
|
||||||
sizeof(vert),
|
sizeof(vert),
|
||||||
@ -1328,7 +1328,7 @@ void D3DVideo::overlay_render()
|
|||||||
|
|
||||||
dev->SetStreamSource(0, overlay.vert_buf, 0, sizeof(overlay_vertex));
|
dev->SetStreamSource(0, overlay.vert_buf, 0, sizeof(overlay_vertex));
|
||||||
|
|
||||||
if(overlay.overlay_fullscreen)
|
if (overlay.overlay_fullscreen)
|
||||||
{
|
{
|
||||||
// set viewport to full window
|
// set viewport to full window
|
||||||
D3DVIEWPORT9 vp_full;
|
D3DVIEWPORT9 vp_full;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user