Skip to content

Commit 1822471

Browse files
Update Source/System/GraphicalPrimitive.cpp
implicit cast 2 Co-authored-by: Leo Göttlicher <[email protected]>
1 parent f232740 commit 1822471

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Source/System/GraphicalPrimitive.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ void BitmapPrimitive::Draw(BITMAP* drawScreen, const Vector& targetPos) {
504504
return;
505505
}
506506

507-
BITMAP* bitmapToDraw = create_bitmap_ex(8, (int)(m_Bitmap->w * m_Scale), (int)(m_Bitmap->h * m_Scale));
507+
BITMAP* bitmapToDraw = create_bitmap_ex(8, m_Bitmap->w * m_Scale, m_Bitmap->h * m_Scale);
508508
clear_to_color(bitmapToDraw, ColorKeys::g_MaskColor);
509509
if (m_Scale == 1.0f) {
510510
draw_sprite(bitmapToDraw, m_Bitmap, 0, 0);

0 commit comments

Comments
 (0)