From 3dc83e4a79f9a69c7cddcdee5f959c1712f205e2 Mon Sep 17 00:00:00 2001 From: Kirill Berezin Date: Wed, 27 Aug 2014 05:10:51 +0400 Subject: [PATCH] Fix issue#3 Make work on windows --- src/view_win.cc | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/view_win.cc b/src/view_win.cc index 10505af..747dedc 100644 --- a/src/view_win.cc +++ b/src/view_win.cc @@ -25,6 +25,7 @@ class ViewWin : public View, Awesomium::kWebViewType_Window); web_view_->set_view_listener(this); + g_active_views_.push_back(this); // Create our WinAPI Window HINSTANCE hInstance = GetModuleHandle(0); @@ -49,8 +50,6 @@ class ViewWin : public View, UpdateWindow(hwnd_); SetTimer (hwnd_, 0, 15, NULL ); - - g_active_views_.push_back(this); } virtual ~ViewWin() { @@ -170,4 +169,4 @@ LRESULT CALLBACK WndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam) View* View::Create(int width, int height) { return new ViewWin(width, height); -} \ No newline at end of file +}