(D3D) Build fixes

This commit is contained in:
twinaphex 2014-09-11 19:28:14 +02:00
parent 4ac5650336
commit 2568f1f2e0
3 changed files with 12 additions and 7 deletions

View File

@ -34,13 +34,6 @@
#include "d3d_shared.h"
#ifdef HAVE_MONITOR
namespace Monitor
{
static HMONITOR last_hm;
static HMONITOR all_hms[MAX_MONITORS];
static unsigned num_mons;
}
static BOOL CALLBACK monitor_enum_proc(HMONITOR hMonitor,
HDC hdcMonitor, LPRECT lprcMonitor, LPARAM dwData)
{

View File

@ -37,6 +37,15 @@ extern LRESULT CALLBACK WindowProc(HWND hWnd, UINT message,
static RECT d3d_monitor_rect(d3d_video_t *d3d);
#endif
#ifdef HAVE_MONITOR
namespace Monitor
{
static HMONITOR last_hm;
static HMONITOR all_hms[MAX_MONITORS];
static unsigned num_mons;
}
#endif
static void d3d_deinit_shader(void *data)
{
d3d_video_t *d3d = (d3d_video_t*)data;

View File

@ -532,6 +532,9 @@ void renderchain_blit_to_texture(void *data, const void *frame,
D3DLOCKED_RECT d3dlr;
renderchain_t *chain = (renderchain_t*)data;
Pass &first = chain->passes[0];
(void)desc;
if (first.last_width != width || first.last_height != height)
{
D3DTexture_LockRectClear(first, first.tex, 0, d3dlr,