changeset 1117:19bfb73617ad draft

debug option "-p" fix.
author tkaito@henri
date Sun, 23 Jan 2011 04:03:00 +0900
parents 8e818d8fa36b
children 7ba266bb54d3
files Renderer/Engine/main.cc
diffstat 1 files changed, 4 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/Renderer/Engine/main.cc	Sat Jan 22 23:09:44 2011 +0900
+++ b/Renderer/Engine/main.cc	Sun Jan 23 04:03:00 2011 +0900
@@ -52,8 +52,8 @@
 	    spenum = atoi(argv[++i]);
 	}
 	if (strcmp(argv[i], "-p") == 0) {
-	    profile = 1;
-	}
+            profile = 1;
+        }
 	if (strcmp(argv[i], "-video") == 0) {
 	    if (strcmp(argv[i+1], "sdl") == 0) { 
 		vtype = VTYPE_SDL;
@@ -93,10 +93,9 @@
     } else {
 	ViewerDevice *dev = new ViewerSDL(manager);
 	screen = new Viewer(manager, dev, bpp, width, height, spenum);
-    }
-    
+   }    
     screen->mem_flag = mem_flag;
-    screen->profile = 1;
+    screen->profile = profile;
     screen->run_init(manager, application());
 
     return 0;