mirror of
https://github.com/libretro/RetroArch
synced 2025-04-07 13:23:32 +00:00
win32: fix compile without HAVE_OVERLAY
This commit is contained in:
parent
66b4b45f5c
commit
15f6026c86
@ -394,7 +394,9 @@ D3DVideo::D3DVideo(const video_info_t *info) :
|
|||||||
{
|
{
|
||||||
gfx_set_dwm();
|
gfx_set_dwm();
|
||||||
|
|
||||||
|
#ifdef HAVE_OVERLAY
|
||||||
std::memset(&overlay,0,sizeof(overlay));
|
std::memset(&overlay,0,sizeof(overlay));
|
||||||
|
#endif
|
||||||
|
|
||||||
std::memset(&windowClass, 0, sizeof(windowClass));
|
std::memset(&windowClass, 0, sizeof(windowClass));
|
||||||
windowClass.cbSize = sizeof(windowClass);
|
windowClass.cbSize = sizeof(windowClass);
|
||||||
@ -574,9 +576,11 @@ bool D3DVideo::frame(const void *frame,
|
|||||||
dev->EndScene();
|
dev->EndScene();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#ifdef HAVE_OVERLAY
|
||||||
if(overlay.overlay_enabled) {
|
if(overlay.overlay_enabled) {
|
||||||
overlay_render();
|
overlay_render();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
RARCH_PERFORMANCE_STOP(d3d_frame);
|
RARCH_PERFORMANCE_STOP(d3d_frame);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user