From e1cab61fa671d684589b4926f96d03286cfe3daf Mon Sep 17 00:00:00 2001 From: Julian Storer Date: Tue, 6 Jul 2010 18:01:07 +0100 Subject: [PATCH] Fixed some minor typos in Rectangle and the RTAS wrapper. --- .../audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp | 2 +- juce_amalgamated.h | 11 +++++++---- src/core/juce_StandardHeader.h | 2 +- src/gui/graphics/geometry/juce_Point.h | 3 +++ src/gui/graphics/geometry/juce_Rectangle.h | 6 +++--- 5 files changed, 15 insertions(+), 9 deletions(-) diff --git a/extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp b/extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp index d23f95f8c6..a3e57135b3 100644 --- a/extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp +++ b/extras/audio plugins/wrapper/RTAS/juce_RTAS_Wrapper.cpp @@ -284,7 +284,7 @@ public: if (peer != 0) { // (seems to be required in PT6.4, but not in 7.x) - peer->repaint (0, 0, wrapper->getWidth(), wrapper->getHeight()); + peer->repaint (wrapper->getLocalBounds()); } } #endif diff --git a/juce_amalgamated.h b/juce_amalgamated.h index 97bfa6cf2c..5e25e704a6 100644 --- a/juce_amalgamated.h +++ b/juce_amalgamated.h @@ -64,7 +64,7 @@ */ #define JUCE_MAJOR_VERSION 1 #define JUCE_MINOR_VERSION 52 -#define JUCE_BUILDNUMBER 36 +#define JUCE_BUILDNUMBER 37 /** Current Juce version number. @@ -19265,6 +19265,9 @@ public: /** Casts this point to a Point object. */ const Point toFloat() const throw() { return Point (static_cast (x), static_cast (y)); } + /** Casts this point to a Point object. */ + const Point toInt() const throw() { return Point (static_cast (x), static_cast (y)); } + /** Returns the point as a string in the form "x, y". */ const String toString() const { return String (x) + ", " + String (y); } @@ -20506,13 +20509,13 @@ public: const Point getTopLeft() const throw() { return getPosition(); } /** Returns the rectangle's top-right position as a Point. */ - const Point getTopRight() const throw() { return Point (x + w, y); } + const Point getTopRight() const throw() { return Point (x + w, y); } /** Returns the rectangle's bottom-left position as a Point. */ - const Point getBottomLeft() const throw() { return Point (x, y + h); } + const Point getBottomLeft() const throw() { return Point (x, y + h); } /** Returns the rectangle's bottom-right position as a Point. */ - const Point getBottomRight() const throw() { return Point (x + w, y + h); } + const Point getBottomRight() const throw() { return Point (x + w, y + h); } /** Changes the rectangle's size, leaving the position of its top-left corner unchanged. */ void setSize (const ValueType newWidth, const ValueType newHeight) throw() { w = newWidth; h = newHeight; } diff --git a/src/core/juce_StandardHeader.h b/src/core/juce_StandardHeader.h index 3769c6a572..0c0666e75d 100644 --- a/src/core/juce_StandardHeader.h +++ b/src/core/juce_StandardHeader.h @@ -33,7 +33,7 @@ */ #define JUCE_MAJOR_VERSION 1 #define JUCE_MINOR_VERSION 52 -#define JUCE_BUILDNUMBER 36 +#define JUCE_BUILDNUMBER 37 /** Current Juce version number. diff --git a/src/gui/graphics/geometry/juce_Point.h b/src/gui/graphics/geometry/juce_Point.h index 91af8e34be..d0d3e9a88a 100644 --- a/src/gui/graphics/geometry/juce_Point.h +++ b/src/gui/graphics/geometry/juce_Point.h @@ -159,6 +159,9 @@ public: /** Casts this point to a Point object. */ const Point toFloat() const throw() { return Point (static_cast (x), static_cast (y)); } + /** Casts this point to a Point object. */ + const Point toInt() const throw() { return Point (static_cast (x), static_cast (y)); } + /** Returns the point as a string in the form "x, y". */ const String toString() const { return String (x) + ", " + String (y); } diff --git a/src/gui/graphics/geometry/juce_Rectangle.h b/src/gui/graphics/geometry/juce_Rectangle.h index 1505ba09bb..2552f7e6f5 100644 --- a/src/gui/graphics/geometry/juce_Rectangle.h +++ b/src/gui/graphics/geometry/juce_Rectangle.h @@ -146,13 +146,13 @@ public: const Point getTopLeft() const throw() { return getPosition(); } /** Returns the rectangle's top-right position as a Point. */ - const Point getTopRight() const throw() { return Point (x + w, y); } + const Point getTopRight() const throw() { return Point (x + w, y); } /** Returns the rectangle's bottom-left position as a Point. */ - const Point getBottomLeft() const throw() { return Point (x, y + h); } + const Point getBottomLeft() const throw() { return Point (x, y + h); } /** Returns the rectangle's bottom-right position as a Point. */ - const Point getBottomRight() const throw() { return Point (x + w, y + h); } + const Point getBottomRight() const throw() { return Point (x + w, y + h); } /** Changes the rectangle's size, leaving the position of its top-left corner unchanged. */ void setSize (const ValueType newWidth, const ValueType newHeight) throw() { w = newWidth; h = newHeight; }