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 <>
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();
current_pos *= devicePixelRatio();
vout_window_ReportMouseMoved( p_window, current_pos.x(), current_pos.y() );
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