Browse Source

Reverted a mistaken change of type in LookAndFeel::createGraphicsContext

tags/2021-05-28
jules 6 years ago
parent
commit
ad2419e152
2 changed files with 2 additions and 2 deletions
  1. +1
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp
  2. +1
    -1
      modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h

+ 1
- 1
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.cpp View File

@@ -170,7 +170,7 @@ MouseCursor LookAndFeel::getMouseCursorFor (Component& component)
std::unique_ptr<LowLevelGraphicsContext> LookAndFeel::createGraphicsContext (const Image& imageToRenderOn,
Point<int> origin,
RectangleList<int> initialClip)
const RectangleList<int>& initialClip)
{
return std::make_unique<LowLevelGraphicsSoftwareRenderer> (imageToRenderOn, origin, initialClip);
}


+ 1
- 1
modules/juce_gui_basics/lookandfeel/juce_LookAndFeel.h View File

@@ -198,7 +198,7 @@ public:
/** Creates a new graphics context object. */
virtual std::unique_ptr<LowLevelGraphicsContext> createGraphicsContext (const Image& imageToRenderOn,
Point<int> origin,
RectangleList<int> initialClip);
const RectangleList<int>& initialClip);
void setUsingNativeAlertWindows (bool shouldUseNativeAlerts);
bool isUsingNativeAlertWindows();


Loading…
Cancel
Save