1
0
Fork 0
mirror of https://github.com/juce-framework/JUCE.git synced 2026-02-05 03:50:07 +00:00

Fixed a small streaming bug, tidied up some warnings.

This commit is contained in:
Julian Storer 2009-12-22 14:53:12 +00:00
parent aa98aa03ec
commit 24a121e4dd
12 changed files with 124 additions and 76 deletions

View file

@ -420,8 +420,8 @@ public:
while (x > clip.origin.x) x -= iw;
while (y > clip.origin.y) y -= ih;
const int right = clip.origin.x + clip.size.width;
const int bottom = clip.origin.y + clip.size.height;
const int right = (int) (clip.origin.x + clip.size.width);
const int bottom = (int) (clip.origin.y + clip.size.height);
while (y < bottom)
{

View file

@ -483,7 +483,7 @@ bool juce_launchFile (const String& fileName,
ok = [[NSWorkspace sharedWorkspace] openURLs: urls
withAppBundleIdentifier: [[NSBundle bundleWithPath: juceStringToNS (fileName)] bundleIdentifier]
options: nil
options: 0
additionalEventParamDescriptor: nil
launchIdentifiers: nil];
}

View file

@ -203,7 +203,7 @@ public:
const int length = text.length();
CGGlyph* const glyphs = createGlyphsForString (text, length);
int x = 0;
float x = 0;
#if SUPPORT_ONLY_10_4_FONTS
NSSize* const advances = (NSSize*) juce_malloc (length * sizeof (NSSize));
@ -273,7 +273,7 @@ public:
NSSize* const advances = (NSSize*) juce_malloc (length * sizeof (NSSize));
[nsFont getAdvancements: advances forGlyphs: (NSGlyph*) glyphs count: length];
int x = 0;
float x = 0;
for (int i = 0; i < length; ++i)
{
x += advances[i].width;

View file

@ -251,8 +251,8 @@ void QuickTimeMovieComponent::getMovieNormalSize (int& width, int& height) const
if (movie != 0)
{
NSSize s = [[theMovie attributeForKey: QTMovieNaturalSizeAttribute] sizeValue];
width = s.width;
height = s.height;
width = (int) s.width;
height = (int) s.height;
}
}