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

Diff for games/_shared/my-graph.c between version 1.11 and 1.12

version 1.11, 2003/09/12 13:03:01 version 1.12, 2003/10/07 12:20:29
Line 12 
Line 12 
  *   *
  */   */
   
 /* $Platon: games/_shared/my-graph.c,v 1.10 2003/08/15 16:18:42 nepto Exp $ */  /* $Platon: games/_shared/my-graph.c,v 1.11 2003/09/12 13:03:01 nepto Exp $ */
   
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <stdlib.h>
Line 52  int my_graph_init(int pagging) /* {{{ */
Line 52  int my_graph_init(int pagging) /* {{{ */
         errorcode = registerbgidriver(EGAVGA_driver);          errorcode = registerbgidriver(EGAVGA_driver);
         /* report any registration errors */          /* report any registration errors */
         if (errorcode < 0) {          if (errorcode < 0) {
                 printf("Graphics error: %s\n", grapherrormsg(errorcode));                  fprintf(stderr, "my_graph_init(): graphics error: %s\n",
                                   grapherrormsg(errorcode));
                 return -1;                  return -1;
         }          }
 #endif  #endif
Line 62  int my_graph_init(int pagging) /* {{{ */
Line 63  int my_graph_init(int pagging) /* {{{ */
         /* read result of initialization */          /* read result of initialization */
         errorcode = graphresult();          errorcode = graphresult();
         if (errorcode != grOk)  /* an error occurred */ {          if (errorcode != grOk)  /* an error occurred */ {
                 printf("Graphics error %d: %s\n", errorcode, grapherrormsg(errorcode));                  fprintf(stderr, "my_graph_init(): graphics error %d: %s\n",
                                   errorcode, grapherrormsg(errorcode));
                 return -1;                  return -1;
         }          }
         pagging = pagging; /* not implemented */          pagging = pagging; /* not implemented */
Line 201  int my_graph_init(int pagging) /* {{{ */
Line 203  int my_graph_init(int pagging) /* {{{ */
         svgalib_mode = G640x480x16;          svgalib_mode = G640x480x16;
         svgalib_mode = G640x480x256;          svgalib_mode = G640x480x256;
         if (! vga_hasmode(svgalib_mode)) {          if (! vga_hasmode(svgalib_mode)) {
                 printf("Mode not available.\n");                  fprintf(stderr, "my_graph_init(): mode not available\n");
                 exit(1);                  return -1;
         }          }
   
         vga_setmode(svgalib_mode);          vga_setmode(svgalib_mode);

Legend:
Removed from v.1.11  
changed lines
  Added in v.1.12

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