Skip to content

Commit 75bb507

Browse files
author
Joachim Meyer
committed
Add WinIDEView to IDEApp
1 parent 4c7eb2b commit 75bb507

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

IDE/Contents/Include/PolycodeIDEApp.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@
2222

2323
#if defined(__APPLE__) && defined(__MACH__)
2424
#import "PolycodeView.h"
25+
#elif defined(_WINDOWS)
26+
#include "PolycodeWinIDEView.h"
2527
#else
2628
#include "PolycodeView.h"
2729
#endif
@@ -53,7 +55,7 @@ using namespace Polycode;
5355
class PolycodeIDEApp : public EventDispatcher {
5456
public:
5557
#ifdef _WINDOWS
56-
PolycodeIDEApp(PolycodeViewBase *view);
58+
PolycodeIDEApp(PolycodeWinIDEView *view);
5759
#else
5860
PolycodeIDEApp(PolycodeView *view);
5961
#endif

IDE/Contents/Source/PolycodeIDEApp.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,13 @@ PolycodeEditorManager *globalEditorManager;
3232
Scene *globalScene;
3333

3434
#ifdef _WINDOWS
35-
PolycodeIDEApp::PolycodeIDEApp(PolycodeViewBase *view) : EventDispatcher() {
35+
PolycodeIDEApp::PolycodeIDEApp(PolycodeWinIDEView *view) : EventDispatcher() {
36+
core = new POLYCODE_CORE((PolycodeWinIDEView*)view, 1100, 700,false,false, 0, 0,60, -1, true);
3637
#else
3738
PolycodeIDEApp::PolycodeIDEApp(PolycodeView *view) : EventDispatcher() {
39+
core = new POLYCODE_CORE((PolycodeView*)view, 1100, 700,false,false, 0, 0,60, -1, true);
3840
#endif
39-
core = new POLYCODE_CORE((PolycodeView*)view, 1100, 700,false,false, 0, 0,60, -1, true);
41+
4042
// core->pauseOnLoseFocus = true;
4143

4244
printf("DIR: %s\n", core->getDefaultWorkingDirectory().c_str());

0 commit comments

Comments
 (0)