Skip to content
Snippets Groups Projects
Commit 86d6035c authored by Stéphane Albert's avatar Stéphane Albert
Browse files

ENH: Fixed Y-mirrored screen position coordinate.

parent 573844c3
No related branches found
No related tags found
No related merge requests found
......@@ -829,8 +829,12 @@ ImageViewRenderer
//
PointType p_screen;
assert( !m_GlView.IsNull() );
assert( m_GlView->GetSettings()!=NULL );
p_screen[ 0 ] = screen.x();
p_screen[ 1 ] = screen.y();
p_screen[ 1 ] =
m_GlView->GetSettings()->GetViewportSize()[ 1 ] - screen.y();
shader->SetCenter( p_screen );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment