X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Finit.c;h=448a2876bfbfa6ca171d9242a73e2824edeb4851;hb=8d93b043cc23f5a580363763ad459913127a8664;hp=2f0998ae79618051cb856a06e29f75cbd9daf4cf;hpb=3378979a81f39e4a4082d208bf288492d87f5cd1;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 2f0998ae..448a2876 100644 --- a/src/init.c +++ b/src/init.c @@ -259,6 +259,33 @@ static void ReinitializeGraphics() InitGadgets(); InitToons(); + + + + /* !!! TEST ONLY !!! */ + +#ifdef TARGET_SDL + + { + Bitmap tmp_bitmap; + SDL_Surface *dst = SDLZoomSurface(graphic_info[IMG_SAND].bitmap->surface, + 0.5, 0.5); + tmp_bitmap.surface = dst; + + BlitBitmap(&tmp_bitmap, graphic_info[IMG_SAND].bitmap, + 0, 0, 256, 224, 0, 448); + + SDL_FreeSurface(dst); + } + +#elif defined(PLATFORM_MSDOS) + + stretch_blit((BITMAP *)(graphic_info[IMG_SAND].bitmap->drawable), + (BITMAP *)(graphic_info[IMG_SAND].bitmap->drawable), + 0, 0, 512, 448, + 0, 448, 256, 224); + +#endif } static void ReinitializeSounds()