Mercurial > sdl-ios-xcode
changeset 3989:f903dc168217 SDL-1.2
Fixed 64-bit compile issues
author | Sam Lantinga <slouken@libsdl.org> |
---|---|
date | Sat, 30 Jun 2007 03:47:50 +0000 |
parents | 3270e88063a2 |
children | 1164b2b282a2 |
files | src/video/fbcon/SDL_fb3dfx.c |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- a/src/video/fbcon/SDL_fb3dfx.c Thu Jun 28 19:29:26 2007 +0000 +++ b/src/video/fbcon/SDL_fb3dfx.c Sat Jun 30 03:47:50 2007 +0000 @@ -52,7 +52,7 @@ static int FillHWRect(_THIS, SDL_Surface *dst, SDL_Rect *rect, Uint32 color) { int bpp; - char *dst_base; + Uint32 dst_base; Uint32 format; int dstX, dstY; @@ -65,7 +65,7 @@ } /* Set the destination pixel format */ - dst_base = (char *)((char *)dst->pixels - mapped_mem); + dst_base = ((char *)dst->pixels - mapped_mem); bpp = dst->format->BitsPerPixel; format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); @@ -75,7 +75,7 @@ /* Execute the fill command */ tdfx_wait(6); - tdfx_out32(DSTBASE, (Uint32)dst_base); + tdfx_out32(DSTBASE, dst_base); tdfx_out32(DSTFORMAT, format); tdfx_out32(COLORFORE, color); tdfx_out32(COMMAND_2D, COMMAND_2D_FILLRECT); @@ -97,8 +97,8 @@ int bpp; Uint32 src_format; Uint32 dst_format; - char *src_base; - char *dst_base; + Uint32 src_base; + Uint32 dst_base; int srcX, srcY; int dstX, dstY; Uint32 blitop; @@ -113,10 +113,10 @@ } /* Set the source and destination pixel format */ - src_base = (char *)((char *)src->pixels - mapped_mem); + src_base = ((char *)src->pixels - mapped_mem); bpp = src->format->BitsPerPixel; src_format = src->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13); - dst_base = (char *)((char *)dst->pixels - mapped_mem); + dst_base = ((char *)dst->pixels - mapped_mem); bpp = dst->format->BitsPerPixel; dst_format = dst->pitch | ((bpp+((bpp==8) ? 0 : 8)) << 13);