]> git.uio.no Git - u/mrichter/AliRoot.git/commitdiff
Accept -mode cmd-line option as an alias for -revemode.
authormtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2006 11:28:38 +0000 (11:28 +0000)
committermtadel <mtadel@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 9 Jun 2006 11:28:38 +0000 (11:28 +0000)
EVE/Reve/RGTopFrame.cxx

index f031ae6dfabdb259a1b40f0cd0066fdd5674d5c9..d12d013404094cb76281d8c36b918f0547ae2009 100644 (file)
@@ -165,7 +165,6 @@ RGTopFrame::RGTopFrame(const TGWindow *p, UInt_t w, UInt_t h, LookType_e look)
   }
 
   case LT_GLViewer: {
-    printf("LT_GLViewer this option currently somewhat broken!\n");
     fBrowser->SetupGLViewerLook(fEditor, fCC);
     printf("Crap1 %d %d\n", GetWidth(), GetHeight());
     break;
@@ -251,7 +250,7 @@ void RGTopFrame::DoRedraw3D()
 int RGTopFrame::SpawnGuiAndRun(int argc, char **argv)
 {
   LookType_e revemode = LT_Editor;
-  if(argc >= 3 && strcmp(argv[1], "-revemode")==0) {
+  if(argc >= 3 && (strcmp(argv[1], "-revemode")==0 || strcmp(argv[1], "-mode")==0)) {
     LookType_e m = LookType_e(atoi(argv[2]));
     if(m >= LT_Classic && m <= LT_GLViewer)
       revemode = m;