Browse Source

tags/2021-05-28
jules 17 years ago
parent
commit
62eecb9c50
2 changed files with 4 additions and 3 deletions
  1. +2
    -2
      src/juce_appframework/gui/graphics/contexts/juce_Graphics.h
  2. +2
    -1
      src/juce_core/misc/juce_ZipFile.cpp

+ 2
- 2
src/juce_appframework/gui/graphics/contexts/juce_Graphics.h View File

@@ -584,7 +584,7 @@ public:
int sourceClipWidth, int sourceClipWidth,
int sourceClipHeight, int sourceClipHeight,
const AffineTransform& transform, const AffineTransform& transform,
const bool fillAlphaChannelWithCurrentBrush) const throw();
const bool fillAlphaChannelWithCurrentBrush = false) const throw();
/** Draws an image to fit within a designated rectangle. /** Draws an image to fit within a designated rectangle.
@@ -613,7 +613,7 @@ public:
const int destWidth, const int destWidth,
const int destHeight, const int destHeight,
const RectanglePlacement& placementWithinTarget, const RectanglePlacement& placementWithinTarget,
const bool fillAlphaChannelWithCurrentBrush) const throw();
const bool fillAlphaChannelWithCurrentBrush = false) const throw();
//============================================================================== //==============================================================================


+ 2
- 1
src/juce_core/misc/juce_ZipFile.cpp View File

@@ -366,11 +366,12 @@ int ZipFile::findEndOfZipEntryTable (InputStream* input)
in.setPosition (in.getTotalLength()); in.setPosition (in.getTotalLength());
int64 pos = in.getPosition(); int64 pos = in.getPosition();
const int64 lowestPos = jmax ((int64) 0, pos - 1024);
char buffer [32]; char buffer [32];
zeromem (buffer, sizeof (buffer)); zeromem (buffer, sizeof (buffer));
while (pos > 0)
while (pos > lowestPos)
{ {
in.setPosition (pos - 22); in.setPosition (pos - 22);
pos = in.getPosition(); pos = in.getPosition();


Loading…
Cancel
Save