8000 Updated readme, combined main program · uwydoc/tutorial-framework@1426276 · GitHub
[go: up one dir, main page]

Skip to content

Commit 1426276

Browse files
committed
Updated readme, combined main program
1 parent 055a84a commit 1426276

File tree

3 files changed

+10
-4
lines changed

3 files changed

+10
-4
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@ Please see: http://wiki.awesomium.com/tutorials
77

88
## Setting Up on Windows
99

10-
You should create a new Visual Studio project with the files located in the "src" directory. Only filenames ending in "_win" or those that do not specify a platform should be added to your project.
10+
1. Create a new Visual Studio (Win32) project with the files located in the "src" directory.
11+
2. Only filenames ending in `_win` or those that do not specify a platform should be added to your project.
1112

1213
## Setting Up on Mac OSX
1314

14-
You should create a new XCode Cocoa project with the files located in the "src" directory. Only filenames ending in "_mac" or those that do not specify a platform should be added to your project.
15+
1. Create a new XCode (Cocoa) project with the files located in the "src" directory.
16+
2. Only filenames ending in `_mac` or those that do not specify a platform should be added to your project.

src/main_win.cc renamed to src/main.cc

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,8 +31,8 @@ class TutorialApp : public Application::Listener {
3131

3232
// Inherited from Application::Listener
3333
virtual void OnLoaded() {
34-
view_ = View::Create(800, 600);
35-
view_->web_view()->LoadURL(WebURL(WSLit("http://www.google.com")));
34+
view_ = View::Create(512, 512);
35+
// < Set up your View here. >
3636
}
3737

3838
// Inherited from Application::Listener
@@ -44,8 +44,12 @@ class TutorialApp : public Application::Listener {
4444
}
4545
};
4646

47+
#ifdef _WIN32
4748
int APIENTRY wWinMain(HINSTANCE hInstance, HINSTANCE, wchar_t*,
4849
int nCmdShow) {
50+
#else
51+
int main() {
52+
#endif
4953

5054
TutorialApp app;
5155
app.Run();

src/main_mac.cc

Whitespace-only changes.

0 commit comments

Comments
 (0)
0