From 3093a8a5f4a86de659908db588cec1a87487701c Mon Sep 17 00:00:00 2001 From: alanh <> Date: Mon, 20 Nov 2000 16:17:54 +0000 Subject: [PATCH] update new grLfbReadRegion for 64bit. --- glide3x/h5/glide3/src/glfb.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/glide3x/h5/glide3/src/glfb.c b/glide3x/h5/glide3/src/glfb.c index 5787719..d4a9122 100644 --- a/glide3x/h5/glide3/src/glfb.c +++ b/glide3x/h5/glide3/src/glfb.c @@ -648,7 +648,7 @@ GR_ENTRY(grLfbLock, FxBool,(GrLock_t type, GrBuffer_t buffer, info->strideInBytes = driInfo.stride; } else { info->strideInBytes = gc->bInfo->buffInfo.bufLfbStride; - } + } #else /* defined(__linux__) */ /* * This is the default for 3D LFBs, @@ -1322,7 +1322,7 @@ GR_ENTRY(grLfbReadRegion, FxBool, (GrBuffer_t src_buffer, scanline=src_height; /* set length - alignment fix*/ - tmp=(((FxU32)src)&2); + tmp=(((AnyPtr)src)&2); length=src_width * bpp - tmp; src_adjust=info.strideInBytes - tmp; dst_adjust=dst_stride - tmp; @@ -1333,7 +1333,7 @@ GR_ENTRY(grLfbReadRegion, FxBool, (GrBuffer_t src_buffer, while(src_height--) { /* adjust starting alignment */ - if (((FxU32)src)&3) + if (((AnyPtr)src)&3) *((FxU16 *)dst)++=*((FxU16 *)src)++; /* read in dwords of pixels */ @@ -1345,12 +1345,12 @@ GR_ENTRY(grLfbReadRegion, FxBool, (GrBuffer_t src_buffer, /* copies aligned dwords */ do { - *((FxU32 *)(((FxU32)dst) + byte_index))=*((FxU32 *)(((FxU32)src) + byte_index)); + *((FxU32 *)(((AnyPtr)dst) + byte_index))=*((FxU32 *)(((AnyPtr)src) + byte_index)); }while((byte_index+=4)