Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(10)

Unified Diff: nacltoons/src/app_delegate.cc

Issue 12380036: [nacltoons] Add design resolution. (Closed) Base URL: https://nativeclient-sdk.googlecode.com/svn/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « DEPS ('k') | nacltoons/src/physics_layer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacltoons/src/app_delegate.cc
diff --git a/nacltoons/src/app_delegate.cc b/nacltoons/src/app_delegate.cc
index d59b2a1f4f2d04d1bd0464bae62af45a3165249c..7d6516ef0f7de07c6bc6e92f0ba6b8848a2a0e2d 100644
--- a/nacltoons/src/app_delegate.cc
+++ b/nacltoons/src/app_delegate.cc
@@ -12,6 +12,13 @@ bool AppDelegate::applicationDidFinishLaunching() {
CCDirector* director = CCDirector::sharedDirector();
director->setOpenGLView(view);
+
+ // This tells cocos that our application's assets are designed for
+ // native display at 600x800. If the embed element is not this
+ // size cocos will automatically scale all assets and coordinates
+ // accordingly.
+ view->setDesignResolutionSize(800, 600, kResolutionNoBorder);
+
director->setDisplayStats(true);
// Create lua engine
« no previous file with comments | « DEPS ('k') | nacltoons/src/physics_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698