mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-27 02:20:05 +00:00
Fixed a linux time issue. Removed a blank line from the jucer's .sln file generator. Cleaned up some jucer code.
This commit is contained in:
parent
952b8c3940
commit
4e52fac18e
24 changed files with 165 additions and 261 deletions
|
|
@ -185,10 +185,10 @@ double Time::getMillisecondCounterHiRes() throw()
|
|||
bool Time::setSystemTimeToThisTime() const
|
||||
{
|
||||
timeval t;
|
||||
t.tv_sec = millisSinceEpoch % 1000000;
|
||||
t.tv_usec = millisSinceEpoch - t.tv_sec;
|
||||
t.tv_sec = millisSinceEpoch / 1000;
|
||||
t.tv_usec = (millisSinceEpoch - t.tv_sec * 1000) * 1000;
|
||||
|
||||
return settimeofday (&t, 0) ? false : true;
|
||||
return settimeofday (&t, 0) == 0;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1504,12 +1504,12 @@ BOOL NSViewComponentPeer::sendDragCallback (int type, id <NSDraggingInfo> sender
|
|||
NSPoint p = [view convertPoint: [sender draggingLocation] fromView: nil];
|
||||
const Point<int> pos ((int) p.x, (int) ([view frame].size.height - p.y));
|
||||
|
||||
StringArray files;
|
||||
|
||||
id list = [[sender draggingPasteboard] propertyListForType: bestType];
|
||||
if (list == nil)
|
||||
return false;
|
||||
|
||||
StringArray files;
|
||||
|
||||
if ([list isKindOfClass: [NSArray class]])
|
||||
{
|
||||
NSArray* items = (NSArray*) list;
|
||||
|
|
|
|||
|
|
@ -1850,8 +1850,6 @@ private:
|
|||
{
|
||||
}
|
||||
|
||||
~JuceDropTarget() {}
|
||||
|
||||
HRESULT __stdcall DragEnter (IDataObject* pDataObject, DWORD /*grfKeyState*/, POINTL mousePos, DWORD* pdwEffect)
|
||||
{
|
||||
updateFileList (pDataObject);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue