Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Saturday, October 17, 2026

Diff for dead/diplomovka/xgrafix/src/xgcommands.c between version 1.3 and 1.4

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) {

Legend:
Removed from v.1.3  
changed lines
  Added in v.1.4

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top