Skip to content

Commit 0ce8056

Browse files
eXpl0it3rTankOs
authored andcommitted
Fixed conversion warning for SendFakeMouseMoveEvent calls
1 parent 1074595 commit 0ce8056

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/SFGUI/Desktop.cpp

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ void Desktop::Add( std::shared_ptr<Widget> widget ) {
115115
RecalculateWidgetLevels();
116116

117117
if( widget->GetAllocation().contains( static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) ) ) {
118-
SendFakeMouseMoveEvent( widget, static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) );
118+
SendFakeMouseMoveEvent( widget, m_last_mouse_pos.x, m_last_mouse_pos.y );
119119
}
120120

121121
// Activate context.
@@ -141,7 +141,7 @@ void Desktop::Remove( std::shared_ptr<Widget> widget ) {
141141
RecalculateWidgetLevels();
142142

143143
if( !m_children.empty() && m_children.front()->GetAllocation().contains( static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) ) ) {
144-
SendFakeMouseMoveEvent( m_children.front(), static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) );
144+
SendFakeMouseMoveEvent( m_children.front(), m_last_mouse_pos.x, m_last_mouse_pos.y );
145145
}
146146
}
147147

@@ -199,7 +199,7 @@ void Desktop::BringToFront( std::shared_ptr<const Widget> child ) {
199199
RecalculateWidgetLevels();
200200

201201
if( child->GetAllocation().contains( static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) ) ) {
202-
SendFakeMouseMoveEvent( ptr, static_cast<float>( m_last_mouse_pos.x ), static_cast<float>( m_last_mouse_pos.y ) );
202+
SendFakeMouseMoveEvent( ptr, m_last_mouse_pos.x, m_last_mouse_pos.y );
203203
}
204204
}
205205

0 commit comments

Comments
 (0)