Commit 2b345618 authored by Pierre Lamot's avatar Pierre Lamot Committed by Jean-Baptiste Kempf

qt: fix mouve move events in video widget with hi-dpi

Signed-off-by: Jean-Baptiste Kempf's avatarJean-Baptiste Kempf <jb@videolan.org>
parent 2dead4fc
......@@ -342,7 +342,14 @@ void VideoWidget::mouseMoveEvent( QMouseEvent *event )
{
if( p_window != NULL )
{
vout_window_ReportMouseMoved( p_window, event->x(), event->y() );
QPointF current_pos = event->localPos();
#if HAS_QT56
current_pos *= devicePixelRatioF();
#else
current_pos *= devicePixelRatio();
#endif
vout_window_ReportMouseMoved( p_window, current_pos.x(), current_pos.y() );
event->accept();
}
else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment