- 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
- if (width_0 != width_1)
- {
- new_width += width_0;
- new_height = MAX(new_height, height_0);
- }
-#endif
-
- new_bitmap = CreateBitmap(new_width, new_height, DEFAULT_DEPTH);
-
-#if 1
- if (width_0 != width_1)
- BlitBitmap(tmp_bitmap_0, new_bitmap, 0, 0, width_0, height_0, width_1, 0);
-#endif
-
- BlitBitmap(tmp_bitmap_1, new_bitmap, 0, 0, width_1, height_1, 0, 0);
- BlitBitmap(tmp_bitmap_2, new_bitmap, 0, 0, width_1 / 2, height_1 / 2,
- 0, height_1);
- BlitBitmap(tmp_bitmap_4, new_bitmap, 0, 0, width_1 / 4, height_1 / 4,
- width_1 / 2, height_1);
- BlitBitmap(tmp_bitmap_8, new_bitmap, 0, 0, width_1 / 8, height_1 / 8,
- 3 * width_1 / 4, height_1);
- BlitBitmap(tmp_bitmap_16, new_bitmap, 0, 0, width_1 / 16, height_1 / 16,
- 7 * width_1 / 8, height_1);
- BlitBitmap(tmp_bitmap_32, new_bitmap, 0, 0, width_1 / 32, height_1 / 32,
- 15 * width_1 / 16, height_1);
-
- UPDATE_BUSY_STATE();