Platon Technologies
neprihlásený Prihlásiť Registrácia
SlovakEnglish
open source software development oslavujeme 10 rokov vývoja otvoreného softvéru! Pondelok, 26. október 2026

Rozdiely pre dead/diplomovka/xgrafix/src/xgcommands.c medzi verziami 1.3 a 1.4

verzia 1.3, 2002/07/09 19:53:36 verzia 1.4, 2002/07/11 23:44:38
Riadok 76  void StartGraphics(void)
Riadok 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,
Riadok 307  int C_KillGraphicsProc(void)
Riadok 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:
Odstranené z verzie1.3  
zmenené riadky
  Pridané vo verzii1.4

Platon Group <platon@platon.sk> http://platon.sk/
Copyright © 2002-2006 Platon Group
Stránka používa redakčný systém Metafox
Na začiatok