summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-08-13 04:53:29 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-08-13 04:53:29 +0000
commitc31790ab66aeb5fd08459ddbf0399392eaf5e93a (patch)
treeb44c1ace1572bd40abfac725d1d832a15081f232 /plugins
parent02c0fa569e4b7505200ec296954fd0c3b750e9ee (diff)
downloadpcsxr-c31790ab66aeb5fd08459ddbf0399392eaf5e93a.tar.gz
dfsound (win32): added free dxsdk header from wine.
dfxvideo (win32): added free dxsdk headers from wine, do not link against ddraw.lib which was removed from latest dxsdk git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@56051 e17a0e51-4ae3-4d35-97c3-1a29b211df97
Diffstat (limited to 'plugins')
-rw-r--r--plugins/dfsound/stdafx.h2
-rw-r--r--plugins/dfxvideo/externals.h5
-rw-r--r--plugins/dfxvideo/gpu.c8
3 files changed, 10 insertions, 5 deletions
diff --git a/plugins/dfsound/stdafx.h b/plugins/dfsound/stdafx.h
index 7d1a1f52..3f28ceb9 100644
--- a/plugins/dfsound/stdafx.h
+++ b/plugins/dfsound/stdafx.h
@@ -31,6 +31,8 @@
#include "resource.h"
+#pragma warning (disable:4996)
+
#else
#ifndef _MACOSX
diff --git a/plugins/dfxvideo/externals.h b/plugins/dfxvideo/externals.h
index 35fe0eff..e8e36626 100644
--- a/plugins/dfxvideo/externals.h
+++ b/plugins/dfxvideo/externals.h
@@ -60,6 +60,9 @@
#define D3D_OVERLOADS
#define DIRECT3D_VERSION 0x600
#define CINTERFACE
+#ifndef WINVER
+#define WINVER 0x0500
+#endif
#include <stdio.h>
#include <stdlib.h>
@@ -71,7 +74,7 @@
#include <tchar.h>
#include "resource.h"
-#include "ddraw.h"
+#include "ddraw.h"
#include "d3dtypes.h"
#include "d3d.h"
diff --git a/plugins/dfxvideo/gpu.c b/plugins/dfxvideo/gpu.c
index f9def091..470a0e5b 100644
--- a/plugins/dfxvideo/gpu.c
+++ b/plugins/dfxvideo/gpu.c
@@ -15,7 +15,7 @@
* *
***************************************************************************/
-#ifndef _MACGL
+#if !defined(_MACGL) && !defined(_WINDOWS)
#include "config.h"
#endif
@@ -379,9 +379,9 @@ void CALLBACK GPUmakeSnapshot(void)
if (PSXDisplay.RGB24)
{
uint32_t lu = *(uint32_t *)pD;
- line[j * 3 + 2] = RED(lu);
- line[j * 3 + 1] = GREEN(lu);
- line[j * 3 + 0] = BLUE(lu);
+ line[j * 3 + 2] = (unsigned char)RED(lu);
+ line[j * 3 + 1] = (unsigned char)GREEN(lu);
+ line[j * 3 + 0] = (unsigned char)BLUE(lu);
pD += 3;
}
else