| version 1.3, 2002/07/09 19:53:36 |
version 1.4, 2002/07/11 23:44:38 |
| Line 76 void StartGraphics(void) |
|
| Line 76 void StartGraphics(void) |
|
| } |
} |
| |
|
| /* Recreate all the diagnostic windows. */ |
/* Recreate all the diagnostic windows. */ |
| for (i=0; i<numberOfWindows, |
for (i=0; i < numberOfWindows && |
| theWindowArray[i] != NULL, |
theWindowArray[i] != NULL && |
| theWindowArray[i]->label != NULL; i++) { |
theWindowArray[i]->label != NULL; i++) { |
| theWindow = theWindowArray[i]; |
theWindow = theWindowArray[i]; |
| if (snprintf(TclCommand, TclCommand_MAX, |
if (snprintf(TclCommand, TclCommand_MAX, |
| Line 307 int C_KillGraphicsProc(void) |
|
| Line 307 int C_KillGraphicsProc(void) |
|
| */ |
*/ |
| |
|
| #ifdef DEBUG |
#ifdef DEBUG |
| fprintf(stderr, "Freeing display(%p)\n"); |
fprintf(stderr, "Freeing display(%p)\n", theWindowArray); |
| #endif |
#endif |
| for (i = 0; i < numberOfWindows, theWindowArray[i] != NULL; i++) { |
for (i = 0; i < numberOfWindows && theWindowArray[i] != NULL; i++) { |
| #ifdef DEBUG |
#ifdef DEBUG |
| if(theWindowArray[i] != NULL) |
if(theWindowArray[i] != NULL) |
| fprintf(stderr, "\ttheWindowArray[%02d]('%s')->pixmap_buffer(%d)\n", |
fprintf(stderr, "\ttheWindowArray[%02d]('%p')\n", i, theWindowArray[i]); |
| i, theWindowArray[i], theWindowArray[i]->pixmap_buffer); |
|
| #endif |
#endif |
| /* XXX: REWRITE THIS! */ |
/* XXX: REWRITE THIS! */ |
| if (theWindowArray[i]->pixmap_buffer == 0) |
//if (theWindowArray[i]->pixmap_buffer == 0) |
| XFreePixmap(theDisplay, theWindowArray[i]->pixmap_buffer); |
XFreePixmap(theDisplay, theWindowArray[i]->pixmap_buffer); |
| theWindowArray[i]->pixmap_buffer = 0; |
//theWindowArray[i]->pixmap_buffer = 0; |
| } |
} |
| |
|
| if (snprintf(TclCommand, TclCommand_MAX, "set WaitVariable 2 ; destroy .\n") == -1) { |
if (snprintf(TclCommand, TclCommand_MAX, "set WaitVariable 2 ; destroy .\n") == -1) { |