Mercurial > sdl-ios-xcode
comparison src/video/cybergfx/SDL_cgxaccel.c @ 21:75a95f82bc1f
Updated the Amiga OS port of SDL (thanks Gabriele)
author | Sam Lantinga <slouken@lokigames.com> |
---|---|
date | Thu, 10 May 2001 20:13:29 +0000 |
parents | 74212992fb08 |
children | dcb5e869f8b5 |
comparison
equal
deleted
inserted
replaced
20:3dc008dc229d | 21:75a95f82bc1f |
---|---|
212 { | 212 { |
213 BBRP(src->hwdata->bmap,srcrect->x,srcrect->y,SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,srcrect->w,srcrect->h,0xc0); | 213 BBRP(src->hwdata->bmap,srcrect->x,srcrect->y,SDL_RastPort,dstrect->x+SDL_Window->BorderLeft,dstrect->y+SDL_Window->BorderTop,srcrect->w,srcrect->h,0xc0); |
214 } | 214 } |
215 else if(dst->hwdata) | 215 else if(dst->hwdata) |
216 BBB(src->hwdata->bmap,srcrect->x,srcrect->y,dst->hwdata->bmap,dstrect->x,dstrect->y,srcrect->w,srcrect->h,0xc0,0xff,NULL); | 216 BBB(src->hwdata->bmap,srcrect->x,srcrect->y,dst->hwdata->bmap,dstrect->x,dstrect->y,srcrect->w,srcrect->h,0xc0,0xff,NULL); |
217 | |
218 return 0; | |
217 } | 219 } |
218 | 220 |
219 int CGX_FillHWRect(_THIS,SDL_Surface *dst,SDL_Rect *dstrect,Uint32 color) | 221 int CGX_FillHWRect(_THIS,SDL_Surface *dst,SDL_Rect *dstrect,Uint32 color) |
220 { | 222 { |
221 if(dst==SDL_VideoSurface) | 223 if(dst==SDL_VideoSurface) |
232 | 234 |
233 temprp.BitMap=(struct BitMap *)dst->hwdata->bmap; | 235 temprp.BitMap=(struct BitMap *)dst->hwdata->bmap; |
234 | 236 |
235 FillPixelArray(&temprp,dstrect->x,dstrect->y,dstrect->w,dstrect->h,color); | 237 FillPixelArray(&temprp,dstrect->x,dstrect->y,dstrect->w,dstrect->h,color); |
236 } | 238 } |
237 } | 239 return 0; |
240 } |