mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-30 02:50:05 +00:00
Updated the demo to have a new graphics rendering test page - this tests a lot of the new graphics features and lets you swap between software/OS rendering engines. Also fixed a mac menu bug, and mac mouse event timestamps.
This commit is contained in:
parent
15c32d3f3a
commit
ded840d456
18 changed files with 472 additions and 196 deletions
|
|
@ -430,13 +430,27 @@ bool XmlElement::writeToFile (const File& f,
|
|||
<< dtd << "\r\n";
|
||||
|
||||
writeElementAsText (*out, 0, lineWrapLength);
|
||||
|
||||
delete out;
|
||||
|
||||
if (tempFile.moveFileTo (f))
|
||||
return true;
|
||||
if (! tempFile.exists())
|
||||
return false;
|
||||
|
||||
tempFile.deleteFile();
|
||||
int i;
|
||||
for (i = 5; --i >= 0;)
|
||||
{
|
||||
if (tempFile.moveFileTo (f))
|
||||
return true;
|
||||
|
||||
Thread::sleep (100);
|
||||
}
|
||||
|
||||
for (i = 5; --i >= 0;)
|
||||
{
|
||||
if (tempFile.deleteFile())
|
||||
break;
|
||||
|
||||
Thread::sleep (100);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue