~ubuntu-branches/ubuntu/warty/dossizola/warty

« back to all changes in this revision

Viewing changes to dossizola/main.c

  • Committer: Bazaar Package Importer
  • Author(s): Yann Dirson
  • Date: 2002-01-27 22:09:06 UTC
  • Revision ID: james.westby@ubuntu.com-20020127220906-c7s1xvn20wcsogyq
Tags: 1.0-6
* Build against sdl 1.2 (Closes: #76166).
* Patched all invocations of SetAlpha with s/alpha/255-alpha/, as the
  semantics of this call seem to have changed between 1.0 and 1.1.
* Switched manpage generation to docbook-utils.
* Install manpage in section 6.

Show diffs side-by-side

added added

removed removed

Lines of Context:
38
38
                        exit (1);
39
39
                }
40
40
        }       
 
41
#ifdef UPSTREAM
41
42
        strcpy (imgpath, argv[0]);
42
43
        for (i = strlen (imgpath); i >= 0; i --)
43
44
        {       
48
49
                }
49
50
                if (!i) strcpy (imgpath, "./images/");
50
51
        }
51
 
        
 
52
#else
 
53
        snprintf (imgpath, sizeof(imgpath), "%s/dossizola/images/", DATADIR);
 
54
#endif
 
55
 
52
56
        // Initialise SDL
53
57
        if (SDL_Init (SDL_INIT_VIDEO) < 0)
54
58
        {       fprintf (stderr, "Impossible d'initialiser SDL (%s)\n", SDL_GetError());