Parcourir la source

IDE fix for non-windows platforms

Ivan Safrin il y a 12 ans
Parent
commit
c103da7aaf

+ 4 - 0
IDE/Contents/Include/PolycodeIDEApp.h

@@ -52,7 +52,11 @@ using namespace Polycode;
 
 class PolycodeIDEApp : public EventDispatcher {
 public:
+#ifdef _WINDOWS
 	PolycodeIDEApp(PolycodeViewBase *view);
+#else
+	PolycodeIDEApp(PolycodeView *view);
+#endif
 	~PolycodeIDEApp();
 	
 	void handleEvent(Event *event);	

+ 5 - 1
IDE/Contents/Source/PolycodeIDEApp.cpp

@@ -31,8 +31,12 @@ PolycodeClipboard *globalClipboard;
 PolycodeEditorManager *globalEditorManager;
 Scene *globalScene;
 
+#ifdef _WINDOWS
 PolycodeIDEApp::PolycodeIDEApp(PolycodeViewBase *view) : EventDispatcher() {
-	core = new POLYCODE_CORE(view, 1100, 700,false,false, 0, 0,60, -1, true);
+#else
+PolycodeIDEApp::PolycodeIDEApp(PolycodeView *view) : EventDispatcher() {
+#endif
+	core = new POLYCODE_CORE((PolycodeView*)view, 1100, 700,false,false, 0, 0,60, -1, true);
 //	core->pauseOnLoseFocus = true;
     
 	printf("DIR: %s\n", core->getDefaultWorkingDirectory().c_str());