Skip to content

Commit 3dc83e4

Browse files
committed
Fix issue#3
Make work on windows
1 parent 238c8ff commit 3dc83e4

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/view_win.cc

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ class ViewWin : public View,
2525
Awesomium::kWebViewType_Window);
2626

2727
web_view_->set_view_listener(this);
28+
g_active_views_.push_back(this);
2829

2930
// Create our WinAPI Window
3031
HINSTANCE hInstance = GetModuleHandle(0);
@@ -49,8 +50,6 @@ class ViewWin : public View,
4950
UpdateWindow(hwnd_);
5051

5152
SetTimer (hwnd_, 0, 15, NULL );
52-
53-
g_active_views_.push_back(this);
5453
}
5554

5655
virtual ~ViewWin() {
@@ -170,4 +169,4 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
170169

171170
View* View::Create(int width, int height) {
172171
return new ViewWin(width, height);
173-
}
172+
}

0 commit comments

Comments
 (0)