~ubuntu-branches/ubuntu/raring/powermanga/raring

« back to all changes in this revision

Viewing changes to src/linux.hpp

  • Committer: Bazaar Package Importer
  • Author(s): Barry deFreese, Gonéri Le Bouder, Cyril Brulebois, Barry deFreese
  • Date: 2008-03-19 21:32:41 UTC
  • mfrom: (1.2.4 upstream) (3.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20080319213241-sn6w3z75uppm22eq
Tags: 0.90-dfsg-1
[ Gonéri Le Bouder ]
* add desktop file, thanks Adrien Cunin (Closes: #402168)
 - powermanga.xpm moved in /usr/share/pixmaps
* call dh_desktop to run update-desktop-database

[ Cyril Brulebois ]
* Added XS-Vcs-Svn and XS-Vcs-Browser fields in the control file.

[ Barry deFreese ]
* Bump debhelper build-dep version to match compat
* Fix substvar source:Version
* Make distclean not ignore errors
* Add watch file
* Add Homepage field in control
* Remove XS- from VCS fields in control
* New Upstream Release (Closes: #447415)
  + Should now be dfsg free
  + Adds joystick support (Closes: #442322)
  + STILL NOT SURE ABOUT tlk.fnt
* Revert patches except fixing scoredir path and copyright for manpage
* Remove deprecated Encoding tag from desktop file
* Remove file extension from icon tag in desktop file
* Replace evil 'pwd' with $(CURDIR)
* Removing config.log config.status in clean target
* Convert copyright to UTF-8.
* Remove order/ dir from upstream tarball.
* Remove empty dirs from powermanga package.
* Bump Standards Version to 3.7.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
//*****************************************************************************
2
 
// copyright (c) 1998-2003 TLK Games all rights reserved
3
 
//-----------------------------------------------------------------------------
4
 
// file         : "linux..hpp"
5
 
// created      : 1999-08-17
6
 
// updates      : 2003-06-28
7
 
//-----------------------------------------------------------------------------
8
 
// This program is free software; you can redistribute it and/or modify it under
9
 
// the terms of the GNU General Public License as published by the Free Software
10
 
// Foundation; either version 2 of the License, or (at your option) any later
11
 
// version.
12
 
// 
13
 
// This program is distributed in the hope that it will be useful, but WITHOUT
14
 
// ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
15
 
// FOR A PARTICULAR PURPOSE.  See the GNU General Public License for more
16
 
// details.
17
 
//
18
 
// You should have received a copy of the GNU General Public License along with
19
 
// this program; if not, write to the Free Software Foundation, Inc., 59 Temple
20
 
// Place - Suite 330, Boston, MA  02111-1307, USA.
21
 
//
22
 
//*****************************************************************************
23
 
#ifndef __LINUXHPP__
24
 
#define __LINUXHPP__
25
 
 
26
 
//////////////////////////
27
 
#ifdef WIN32
28
 
 
29
 
#include <stdio.h>
30
 
#include <stdlib.h>
31
 
#include <string.h>
32
 
#include <fcntl.h>
33
 
#include <sys/stat.h>
34
 
#include <sys/types.h>
35
 
#include <io.h>
36
 
#include <math.h>
37
 
 
38
 
#else //WIN32
39
 
 
40
 
//..............................................................................
41
 
#include <stdio.h>
42
 
#include <string.h>
43
 
#include <unistd.h>
44
 
#include <math.h>
45
 
#include <stdlib.h>
46
 
#include <fcntl.h>
47
 
#include <sys/stat.h>
48
 
#include <sys/time.h>
49
 
#include <sys/utsname.h>
50
 
#include <pthread.h>
51
 
#include <unistd.h>
52
 
#include <sys/types.h>
53
 
 
54
 
#endif //WIN32
55
 
 
56
 
//..............................................................................
57
 
#define _VERBEUX_
58
 
#define TRUE                   1
59
 
#define FALSE                  0
60
 
 
61
 
//gestion fichier graphique en memoire ...........................................
62
 
typedef struct
63
 
{ unsigned int            iLargeur;                            //image width
64
 
  unsigned int            iHauteur;                            //image height
65
 
  unsigned int            iProfond;                            //bits per pixels
66
 
  unsigned int            iTaille;                             //memory size
67
 
  char*                   pAdresse;                            //pointer to the image data
68
 
  unsigned char           tPaletteGif[768] ;                   //palette
69
 
} sDescriptionGfx;
70
 
 
71
 
//"xwindow.cpp"....................................................................
72
 
int                    xw_init();
73
 
int                    reserve_ecran_ram();
74
 
int                    charge_palette(char* _pNomFichier);
75
 
int                    xw_exec();
76
 
int                    change_resolution();
77
 
int                    xw_kill();
78
 
char                  *Xload_pcx(char* _pNomFichier);
79
 
int                    Xload_pcx(char* _pNomFichier, char* _pMem);
80
 
char                  *convertit_16ou24(sDescriptionGfx* _pSrc);
81
 
void                   copie_gfx(sDescriptionGfx* _pGfx);
82
 
int                    reserve_ecranPlayanim();
83
 
void                   kill_ecranPlayanim();
84
 
#ifdef SDL_TLK
85
 
void                   verouille();
86
 
void                   deverouille();
87
 
int                    init_video_mode();
88
 
#endif
89
 
 
90
 
//linuxroutines.cpp ------------------------------------------------------------
91
 
int                    mem_initialise(unsigned int _iNombreZones);
92
 
char*                  reserveMemoire(unsigned int _iTailleMemoire);
93
 
void                   libereMemoire(char* _pMemoire);
94
 
int                    mem_retourneTaille(char* _pMem);
95
 
void                   mem_libereTous();
96
 
int                    load_pcx(char*, char*);
97
 
sDescriptionGfx*       load_pcx(char*);
98
 
unsigned int           littleWord(char* _pMem);
99
 
short                  litMot16bits(short* _pMem);
100
 
int                    litMot32bits(int* _pMem);
101
 
void                   convert32bits_2bigendian (unsigned char* memory);
102
 
int                    chaine_cmp(char* _pChaine1, char* _pChaine2, unsigned int _iTaille);
103
 
char*                  chargeFichier(char* _pNomFichier);
104
 
char*                  chargeFichier(char* _pNomFichier, unsigned int* pTaille);
105
 
int                    chargeFichier(char* _pMemoire, char* _pNomFichier);
106
 
void                   fps_init();
107
 
void                   fps_affiche();
108
 
void                   afficheMessage(char* _Message);
109
 
void                   afficheMessage(char* _Message1, char* _Message2);
110
 
void                   afficheErreur(char* _pErreur1, char* _pErreur2);
111
 
void                   afficheErreur(char* _pErreur1, char* _pErreur2, int _iErreur);
112
 
void                   afficheErreur(char* _pErreur1, char* _pErreur2, char* _pErreur3);
113
 
int                    synchro_processusPause(int _iTemps);
114
 
int                    synchro_CalculDifference();
115
 
int                    synchro_CalculDifference2();
116
 
 
117
 
 
118
 
#endif