From 15f6026c865266db98dea286c281e6009652c088 Mon Sep 17 00:00:00 2001 From: OV2 Date: Thu, 28 Mar 2013 14:55:42 +0100 Subject: [PATCH] win32: fix compile without HAVE_OVERLAY --- gfx/d3d9/d3d9.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/gfx/d3d9/d3d9.cpp b/gfx/d3d9/d3d9.cpp index aaaa421e11..d570e7c953 100644 --- a/gfx/d3d9/d3d9.cpp +++ b/gfx/d3d9/d3d9.cpp @@ -394,7 +394,9 @@ D3DVideo::D3DVideo(const video_info_t *info) : { gfx_set_dwm(); +#ifdef HAVE_OVERLAY std::memset(&overlay,0,sizeof(overlay)); +#endif std::memset(&windowClass, 0, sizeof(windowClass)); windowClass.cbSize = sizeof(windowClass); @@ -574,9 +576,11 @@ bool D3DVideo::frame(const void *frame, dev->EndScene(); } +#ifdef HAVE_OVERLAY if(overlay.overlay_enabled) { overlay_render(); } +#endif RARCH_PERFORMANCE_STOP(d3d_frame);