Skip to content

Commit f232740

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

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
@@ -509,7 +509,7 @@ void BitmapPrimitive::Draw(BITMAP* drawScreen, const Vector& targetPos) {
509509
if (m_Scale == 1.0f) {
510510
draw_sprite(bitmapToDraw, m_Bitmap, 0, 0);
511511
} else {
512-
stretch_sprite(bitmapToDraw, m_Bitmap, 0, 0, (int)(m_Bitmap->w * m_Scale), (int)(m_Bitmap->h * m_Scale));
512+
stretch_sprite(bitmapToDraw, m_Bitmap, 0, 0, m_Bitmap->w * m_Scale, m_Bitmap->h * m_Scale);
513513
}
514514

515515
if (m_HFlipped || m_VFlipped) {

0 commit comments

Comments
 (0)