mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
OSX GL views: accepting first mouse click event.
This commit is contained in:
parent
2590de5bad
commit
dea1aa475b
3 changed files with 5 additions and 3 deletions
|
|
@ -2829,7 +2829,7 @@ private:
|
|||
ts += 2;
|
||||
}
|
||||
|
||||
int bt = granule.blockType;
|
||||
const int bt = granule.blockType;
|
||||
if (bt == 2)
|
||||
{
|
||||
for (; sb < (int) granule.maxb; sb += 2, ts += 2, rawout1 += 36, rawout2 += 36)
|
||||
|
|
@ -2972,7 +2972,7 @@ public:
|
|||
{
|
||||
decodedStart = decodedEnd = 0;
|
||||
const int64 streamPos = stream.currentFrameIndex * 1152;
|
||||
int toSkip = startSampleInFile - streamPos;
|
||||
int toSkip = (int) (startSampleInFile - streamPos);
|
||||
jassert (toSkip >= 0);
|
||||
|
||||
while (toSkip > 0)
|
||||
|
|
|
|||
|
|
@ -82,7 +82,7 @@ private:
|
|||
}
|
||||
}
|
||||
|
||||
JUCE_DECLARE_NON_COPYABLE_WITH_LEAK_DETECTOR (SharedValueSourceUpdater);
|
||||
JUCE_DECLARE_NON_COPYABLE (SharedValueSourceUpdater);
|
||||
};
|
||||
|
||||
Value::ValueSource::ValueSource()
|
||||
|
|
|
|||
|
|
@ -35,6 +35,7 @@ struct ThreadSafeNSOpenGLViewClass : public ObjCClass <NSOpenGLView>
|
|||
addMethod (@selector (_surfaceNeedsUpdate:), surfaceNeedsUpdate, "v@:@");
|
||||
addMethod (@selector (rightMouseDown:), rightMouseDown, "v@:@");
|
||||
addMethod (@selector (rightMouseUp:), rightMouseUp, "v@:@");
|
||||
addMethod (@selector (acceptsFirstMouse:), acceptsFirstMouse, "v@:@");
|
||||
|
||||
registerClass();
|
||||
}
|
||||
|
|
@ -86,6 +87,7 @@ private:
|
|||
sendSuperclassMessage (self, @selector (dealloc));
|
||||
}
|
||||
|
||||
static BOOL acceptsFirstMouse (id, SEL, NSEvent*) { return YES; }
|
||||
static void surfaceNeedsUpdate (id self, SEL, NSNotification*) { setNeedsUpdateLocked (self, YES); }
|
||||
static void update (id self, SEL) { setNeedsUpdateLocked (self, YES); }
|
||||
static void reshape (id self, SEL) { setNeedsUpdateLocked (self, YES); }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue