- BlitBitmap(tmp_bitmap_0, new_bitmap, 0, 0, width_0, height_0, width_1, 0);
-
- 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();
- }
- else
- {
- new_width = width_1;
- new_height = height_1;
-
- new_bitmap = tmp_bitmap_1; /* directly use tmp_bitmap_1 as new bitmap */
- }
-
- if (create_small_bitmaps)
- {
- /* if no small bitmaps created, tmp_bitmap_1 is used as new bitmap now */
-
- if (tmp_bitmap_final != old_bitmap)
- FreeBitmap(tmp_bitmap_final);
-
- if (tmp_bitmap_0 != old_bitmap &&
- tmp_bitmap_0 != tmp_bitmap_final)
- FreeBitmap(tmp_bitmap_0);
-
- if (tmp_bitmap_1 != old_bitmap &&
- tmp_bitmap_1 != tmp_bitmap_final &&
- tmp_bitmap_1 != tmp_bitmap_0)
- FreeBitmap(tmp_bitmap_1);
-
- if (tmp_bitmap_2 != old_bitmap)
- FreeBitmap(tmp_bitmap_2);