Fix some more Quarter High DPI Display issues. Partially fixes #3130 (the offset issue).

Related to issue #2968.

Ported from code by Randall O'Reilly.
https://grey.colorado.edu/svn/coin3d/quarter/trunk/
This commit is contained in:
Mateusz Skowroński
2017-08-09 22:49:58 +02:00
committed by wmayer
parent 33baa4a9f2
commit 2e32324007
10 changed files with 58 additions and 8 deletions

View File

@@ -53,11 +53,17 @@ InputDevice::InputDevice(void)
this->mousepos = SbVec2s(0, 0);
}
InputDevice::InputDevice(QuarterWidget *quarter) : quarter(quarter)
{
this->mousepos = SbVec2s(0, 0);
}
/*!
Sets the mouseposition
\param[in] pos position of mouse in pixelcoordinates
*/
void
InputDevice::setMousePosition(const SbVec2s & pos)
{