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:
parent
76b128d90e
commit
a37d5041dd
21 changed files with 167 additions and 125 deletions
|
|
@ -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);
|
||||
}
|
||||
|
||||
//==============================================================================
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue