summaryrefslogtreecommitdiff
path: root/plugins/dfxvideo/gpu.c
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/dfxvideo/gpu.c
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/dfxvideo/gpu.c')
-rw-r--r--plugins/dfxvideo/gpu.c8
1 files changed, 4 insertions, 4 deletions
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