graphical dump without X

This commit is contained in:
nemu
2009-05-06 05:35:26 +00:00
parent 97ef877c64
commit 8e8081a75b
3 changed files with 67 additions and 45 deletions

View File

@ -250,6 +250,11 @@ cout << endl;
if (success) {
// generate Root application needed for PMusrCanvas
if (graphicsOutput) {
argv[argc] = (char*)malloc(16*sizeof(char));
strcpy(argv[argc], "-b");
argc++;
}
TApplication app("App", &argc, argv);
vector<PMusrCanvas*> canvasVector;
@ -263,10 +268,11 @@ cout << endl;
10+i*100, 10+i*100, 800, 600,
startupHandler->GetFourierDefaults(),
startupHandler->GetMarkerList(),
startupHandler->GetColorList());
startupHandler->GetColorList(),
graphicsOutput);
else
musrCanvas = new PMusrCanvas(i, msrHandler->GetMsrTitle()->Data(),
10+i*100, 10+i*100, 800, 600);
10+i*100, 10+i*100, 800, 600, graphicsOutput);
if (!musrCanvas->IsValid()) {
cout << endl << "**SEVERE ERROR** Couldn't invoke all necessary objects, will quit.";