1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-30 02:50:05 +00:00

Added a class Graphics::ScopedSaveState. Fixed a window dragging problem in win32, some VC6 compile errors, and made the jucer makefile builder use the target binary folder.

This commit is contained in:
Julian Storer 2010-12-13 20:06:12 +00:00
parent 76b128d90e
commit a37d5041dd
21 changed files with 167 additions and 125 deletions

View file

@ -89,13 +89,12 @@ public:
return 0;
}
const Point<int> getScreenPosition()
const Point<int> getScreenPosition() const
{
// This must only be called with the message manager locked!
jassert (MessageManager::getInstance()->currentThreadHasLockedMessageManager());
setScreenPos (MouseInputSource::getCurrentMousePosition(), Time::currentTimeMillis(), false);
return lastScreenPos + unboundedMouseOffset;
// This needs to return the live position if possible, but it mustn't update the lastScreenPos
// value, because that can cause continuity problems.
return unboundedMouseOffset + (isMouseDevice ? MouseInputSource::getCurrentMousePosition()
: lastScreenPos);
}
//==============================================================================