Commits

BarryFSmith committed 094c583

run Xvfb with a depth of 24 (32 doesn't work for me), the default 8 produced an incorrect color map

  • Participants
  • Parent commits 681455b

Comments (0)

Files changed (1)

File src/sys/objects/init.c

   flg1 = PETSC_FALSE;
   ierr = PetscOptionsGetBool(NULL,"-x_virtual",&flg1,NULL);CHKERRQ(ierr);
   if (flg1) {
-    ierr = PetscPOpen(PETSC_COMM_WORLD,NULL,"Xvfb :11","r",NULL);CHKERRQ(ierr);
+    ierr = PetscPOpen(PETSC_COMM_WORLD,NULL,"Xvfb :11 -screen 0 1600x1200x24","r",NULL);CHKERRQ(ierr);
     ierr = PetscSleep(5);CHKERRQ(ierr);
   }
 #endif