Browse Source

MSVC compile bug fix

tags/2021-05-28
jules 12 years ago
parent
commit
089332d78c
2 changed files with 2 additions and 2 deletions
  1. +0
    -2
      modules/juce_gui_basics/native/juce_win32_Windowing.cpp
  2. +2
    -0
      modules/juce_gui_basics/windows/juce_ComponentPeer.cpp

+ 0
- 2
modules/juce_gui_basics/native/juce_win32_Windowing.cpp 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));


+ 2
- 0
modules/juce_gui_basics/windows/juce_ComponentPeer.cpp 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


Loading…
Cancel
Save