summaryrefslogtreecommitdiff
path: root/macosx/plugins/DFXVideo/macsrc/PluginGLView.m
diff options
context:
space:
mode:
authorSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-14 08:15:46 +0000
committerSND\weimingzhi_cp <SND\weimingzhi_cp@e17a0e51-4ae3-4d35-97c3-1a29b211df97>2010-12-14 08:15:46 +0000
commit0facac847fd9cde7556a53a0d19407b93b3e3c15 (patch)
tree70dc1ea116b8c06d4647aca653d9a2e56e551c97 /macosx/plugins/DFXVideo/macsrc/PluginGLView.m
parentf6977b75b9a3cebff0ac73a9e751941dea4d7e42 (diff)
downloadpcsxr-0facac847fd9cde7556a53a0d19407b93b3e3c15.tar.gz
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
Diffstat (limited to 'macosx/plugins/DFXVideo/macsrc/PluginGLView.m')
-rw-r--r--macosx/plugins/DFXVideo/macsrc/PluginGLView.m6
1 files changed, 3 insertions, 3 deletions
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<dx;row++)
{
-#ifdef __POWERPC__
+#ifdef __BIG_ENDIAN__
lu=GETLE16D(SRCPtr++);
#else
lu=*SRCPtr++;