@@ -410,7 +410,7 @@ namespace RTE {
410
410
draw_sprite (bitmapToDraw, m_Bitmap, 0 , 0 );
411
411
412
412
if (m_HFlipped || m_VFlipped) {
413
- BITMAP *flipBitmap = create_bitmap_ex (8 , m_Bitmap ->w , m_Bitmap ->h );
413
+ BITMAP *flipBitmap = create_bitmap_ex (8 , bitmapToDraw ->w , bitmapToDraw ->h );
414
414
clear_to_color (flipBitmap, 0 );
415
415
416
416
if (m_HFlipped && !m_VFlipped) {
@@ -421,24 +421,24 @@ namespace RTE {
421
421
draw_sprite_vh_flip (flipBitmap, bitmapToDraw, 0 , 0 );
422
422
}
423
423
424
- draw_sprite (flipBitmap, bitmapToDraw, 0 , 0 );
424
+ blit (flipBitmap, bitmapToDraw, 0 , 0 , 0 , 0 , bitmapToDraw-> w , bitmapToDraw-> h );
425
425
destroy_bitmap (flipBitmap);
426
426
}
427
427
428
428
Matrix rotation = Matrix (m_RotAngle);
429
429
430
430
if (!g_SceneMan.SceneWrapsX () && !g_SceneMan.SceneWrapsY ()) {
431
431
Vector drawStart = m_StartPos - targetPos;
432
- pivot_scaled_sprite (drawScreen, m_Bitmap , drawStart.GetFloorIntX (), drawStart.GetFloorIntY (), m_Bitmap ->w / 2 , m_Bitmap ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
432
+ pivot_scaled_sprite (drawScreen, bitmapToDraw , drawStart.GetFloorIntX (), drawStart.GetFloorIntY (), bitmapToDraw ->w / 2 , bitmapToDraw ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
433
433
} else {
434
434
Vector drawStartLeft;
435
435
Vector drawStartRight;
436
436
437
437
TranslateCoordinates (targetPos, m_StartPos, drawStartLeft, drawStartRight);
438
438
439
439
// Take into account the h-flipped pivot point
440
- pivot_scaled_sprite (drawScreen, m_Bitmap , drawStartLeft.GetFloorIntX (), drawStartLeft.GetFloorIntY (), m_Bitmap ->w / 2 , m_Bitmap ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
441
- pivot_scaled_sprite (drawScreen, m_Bitmap , drawStartRight.GetFloorIntX (), drawStartRight.GetFloorIntY (), m_Bitmap ->w / 2 , m_Bitmap ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
440
+ pivot_scaled_sprite (drawScreen, bitmapToDraw , drawStartLeft.GetFloorIntX (), drawStartLeft.GetFloorIntY (), bitmapToDraw ->w / 2 , bitmapToDraw ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
441
+ pivot_scaled_sprite (drawScreen, bitmapToDraw , drawStartRight.GetFloorIntX (), drawStartRight.GetFloorIntY (), bitmapToDraw ->w / 2 , bitmapToDraw ->h / 2 , ftofix (rotation.GetAllegroAngle ()), ftofix (1.0 ));
442
442
}
443
443
444
444
destroy_bitmap (bitmapToDraw);
0 commit comments