FIX MAINT-6748 content looks correct but page links are flipped vertically
parent
a24e24fb50
commit
53cc5ba225
|
|
@ -597,6 +597,8 @@ void MediaPluginCEF::receiveMessage(const char* message_string)
|
|||
S32 x = message_in.getValueS32("x");
|
||||
S32 y = message_in.getValueS32("y");
|
||||
|
||||
y = mHeight - y;
|
||||
|
||||
// only even send left mouse button events to LLCEFLib
|
||||
// (partially prompted by crash in OS X CEF when sending right button events)
|
||||
// we catch the right click in viewer and display our own context menu anyway
|
||||
|
|
|
|||
|
|
@ -911,7 +911,7 @@ void LLMediaCtrl::convertInputCoords(S32& x, S32& y)
|
|||
}
|
||||
|
||||
x = ll_round((F32)x * LLUI::getScaleFactor().mV[VX]);
|
||||
if ( ! coords_opengl )
|
||||
if ( coords_opengl )
|
||||
{
|
||||
y = ll_round((F32)(y) * LLUI::getScaleFactor().mV[VY]);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue