projects
/
rocksndiamonds.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
rnd-20030126-3-src
[rocksndiamonds.git]
/
src
/
init.c
diff --git
a/src/init.c
b/src/init.c
index 448a2876bfbfa6ca171d9242a73e2824edeb4851..27088af6f34530286779dc76703df458e405edb5 100644
(file)
--- a/
src/init.c
+++ b/
src/init.c
@@
-263,29
+263,16
@@
static void ReinitializeGraphics()
/* !!! TEST ONLY !!! */
/* !!! 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
;
+ 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, graphic_info[IMG_SAND].bitmap,
- 0, 0, 256, 224, 0, 448);
+ BlitBitmap(tmp_bitmap, tst_bitmap, 0, 0, 256, 224, 0, 448);
-
SDL_FreeSurface(dst
);
+
FreeBitmap(tmp_bitmap
);
}
}
-
-#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()
}
static void ReinitializeSounds()