add web sync files and key events

This commit is contained in:
2019-10-11 00:44:11 +02:00
parent e6e3488291
commit babbfb36a7
9 changed files with 211 additions and 23 deletions

View File

@@ -6,7 +6,10 @@
#ifdef __APPLE__
#include <Foundation/Foundation.h>
#elif __WEB__
void webgl_sync();
#endif
#include "canvas.h"
#include "app.h"
#include "abr.h"
@@ -266,6 +269,10 @@ bool NodePanelBrush::save()
sw << *b;
}
f.write((char*)sw.m_data.data(), sw.m_data.size());
f.close();
#if __WEB__
webgl_sync();
#endif
return true;
}
return false;