1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-01-15 00:24:19 +00:00

MSVC compile bug fix

This commit is contained in:
jules 2013-06-25 11:44:40 +01:00
parent 78aac0995a
commit 089332d78c
2 changed files with 2 additions and 2 deletions

View file

@ -1534,8 +1534,6 @@ private:
// if the component's not opaque, this won't draw properly unless the platform can support this
jassert (Desktop::canUseSemiTransparentWindows() || component.isOpaque());
ModifierKeys::updateCurrentModifiers();
{
ScopedPointer<LowLevelGraphicsContext> context (component.getLookAndFeel()
.createGraphicsContext (offscreenImage, Point<int> (-x, -y), contextClip));

View file

@ -98,6 +98,8 @@ void ComponentPeer::handleMagnifyGesture (const int touchIndex, const Point<int>
//==============================================================================
void ComponentPeer::handlePaint (LowLevelGraphicsContext& contextToPaintTo)
{
ModifierKeys::updateCurrentModifiers();
Graphics g (&contextToPaintTo);
#if JUCE_ENABLE_REPAINT_DEBUGGING