From 0facac847fd9cde7556a53a0d19407b93b3e3c15 Mon Sep 17 00:00:00 2001 From: "SND\\weimingzhi_cp" Date: Tue, 14 Dec 2010 08:15:46 +0000 Subject: MaddTheSane: - Clean up the Xcode projects a bit. - Added 64-bit mode on Mac. - Made it so that the SDK was set on the Xcode projects. - Enabled PowerPC support. (Patch #7730). git-svn-id: https://pcsxr.svn.codeplex.com/svn/pcsxr@61171 e17a0e51-4ae3-4d35-97c3-1a29b211df97 --- macosx/plugins/DFXVideo/macsrc/PluginGLView.m | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.m') diff --git a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m index 96b05ff4..9c760ccd 100644 --- a/macosx/plugins/DFXVideo/macsrc/PluginGLView.m +++ b/macosx/plugins/DFXVideo/macsrc/PluginGLView.m @@ -568,7 +568,7 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) row = 0; // make sure the reads are aligned - while ((int)pD & 0x3) { + while ((intptr_t)pD & 0x3) { *((unsigned long *)((surf)+(column*lPitch)+(row<<2))) = (*(pD+0)<<16)|(*(pD+1)<<8)|*(pD+2); @@ -582,7 +582,7 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) unsigned long lu2 = *((unsigned long *)pD+1); unsigned long lu3 = *((unsigned long *)pD+2); unsigned long *dst = ((unsigned long *)((surf)+(column*lPitch)+(row<<2))); -#ifdef __POWERPC__ +#ifdef __BIG_ENDIAN__ *(dst)= (((lu1>>24)&0xff)<<16)|(((lu1>>16)&0xff)<<8)|(((lu1>>8)&0xff)); *(dst+1)= @@ -629,7 +629,7 @@ void BlitScreen16NS(unsigned char * surf,long x,long y) { for(row=0;row