- /* get image with 1/4 of normal size (for use in the level editor) */
- if (zoom_factor != 4)
- tmp_bitmap_4 = ZoomBitmap(tmp_bitmap_2, width_2 / 2, height_2 / 2);
- else
- tmp_bitmap_4 = old_bitmap;
-
- UPDATE_BUSY_STATE();
-
- /* get image with 1/8 of normal size (for use on the preview screen) */
- if (zoom_factor != 8)
- tmp_bitmap_8 = ZoomBitmap(tmp_bitmap_4, width_4 / 2, height_4 / 2);
- else
- tmp_bitmap_8 = old_bitmap;
-
- UPDATE_BUSY_STATE();
-
- /* get image with 1/16 of normal size (for use on the preview screen) */
- if (zoom_factor != 16)
- tmp_bitmap_16 = ZoomBitmap(tmp_bitmap_8, width_8 / 2, height_8 / 2);
- else
- tmp_bitmap_16 = old_bitmap;
-
- UPDATE_BUSY_STATE();
-
- /* get image with 1/32 of normal size (for use on the preview screen) */
- if (zoom_factor != 32)
- tmp_bitmap_32 = ZoomBitmap(tmp_bitmap_16, width_16 / 2, height_16 / 2);
- else
- tmp_bitmap_32 = old_bitmap;
-
- UPDATE_BUSY_STATE();
-#endif
- }
-
-#if 0
- /* if image was scaled up, create new clipmask for normal size image */
- if (zoom_factor != 1)
- {
- SDL_Surface *tmp_surface_1 = tmp_bitmap_1->surface;
-
- if (old_bitmap->surface_masked)
- SDL_FreeSurface(old_bitmap->surface_masked);
-
- SDL_SetColorKey(tmp_surface_1, SET_TRANSPARENT_PIXEL,
- SDL_MapRGB(tmp_surface_1->format, 0x00, 0x00, 0x00));
- if ((old_bitmap->surface_masked = SDL_DisplayFormat(tmp_surface_1)) ==NULL)
- Error(ERR_EXIT, "SDL_DisplayFormat() failed");
- SDL_SetColorKey(tmp_surface_1, UNSET_TRANSPARENT_PIXEL, 0);
- }
-#endif
-
- if (create_small_bitmaps)
- {
- new_width = width_1;
- new_height = height_1 + (height_1 + 1) / 2; /* prevent odd height */
-
-#if 1