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:
parent
aa98aa03ec
commit
24a121e4dd
12 changed files with 124 additions and 76 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue