X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;ds=sidebyside;f=src%2Finit.c;h=34673f372ffffac791b2c965d24ea1414262beac;hb=3d52a86d358f5b1a4b36b80df5d659bce1f5a3a6;hp=2f0998ae79618051cb856a06e29f75cbd9daf4cf;hpb=c5ee7e4524f10322894b2547337e4c973a80a552;p=rocksndiamonds.git diff --git a/src/init.c b/src/init.c index 2f0998ae..34673f37 100644 --- a/src/init.c +++ b/src/init.c @@ -259,6 +259,48 @@ static void ReinitializeGraphics() InitGadgets(); InitToons(); + + + + /* !!! TEST ONLY !!! */ + +#if 1 + + { + Bitmap *tst_bitmap = graphic_info[IMG_SAND].bitmap; + Bitmap *tmp_bitmap = ZoomBitmap(tst_bitmap, + tst_bitmap->width / 2, + tst_bitmap->height / 2); + + BlitBitmap(tmp_bitmap, tst_bitmap, 0, 0, 256, 224, 0, 448); + + FreeBitmap(tmp_bitmap); + } + +#else +#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 +#endif } static void ReinitializeSounds()