fixes to build under vista

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@95 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues 2008-08-07 19:59:00 +00:00
parent bcced2c747
commit cdf5a760b2
3 changed files with 207 additions and 182 deletions

View File

@ -126,34 +126,34 @@ void Ligne_verticale_XOR_SDL (word Pos_X,word Pos_Y,word Hauteur)
void Display_brush_Color_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_brosse) void Display_brush_Color_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Decalage_Y,word Largeur,word Hauteur,byte Couleur_de_transparence,word Largeur_brosse)
{ {
// EDI = Position à l'écran // EDI = Position à l'écran
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X; byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
// ESI = Position dans la brosse // ESI = Position dans la brosse
byte* ESI = Brosse + Decalage_Y * Largeur_brosse + Decalage_X; byte* ESI = Brosse + Decalage_Y * Largeur_brosse + Decalage_X;
word DX,CX; word DX,CX;
// Pour chaque ligne // Pour chaque ligne
for(DX = Hauteur;DX > 0; DX--) for(DX = Hauteur;DX > 0; DX--)
{ {
// Pour chaque pixel // Pour chaque pixel
for(CX = Largeur;CX > 0; CX--) for(CX = Largeur;CX > 0; CX--)
{ {
// On vérifie que ce n'est pas la transparence // On vérifie que ce n'est pas la transparence
if(*ESI != Couleur_de_transparence) if(*ESI != Couleur_de_transparence)
{ {
*EDI = *ESI; *EDI = *ESI;
} }
// Pixel suivant // Pixel suivant
ESI++; EDI++; ESI++; EDI++;
} }
// On passe à la ligne suivante // On passe à la ligne suivante
EDI = EDI + Largeur_ecran - Largeur; EDI = EDI + Largeur_ecran - Largeur;
ESI = ESI + Largeur_brosse - Largeur; ESI = ESI + Largeur_brosse - Largeur;
} }
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur,Hauteur); SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur,Hauteur);
} }
void Display_brush_Mono_SDL (word Pos_X, word Pos_Y, void Display_brush_Mono_SDL (word Pos_X, word Pos_Y,
@ -284,52 +284,52 @@ void Afficher_partie_de_l_ecran_zoomee_SDL(
void Afficher_une_ligne_transparente_a_l_ecran_SDL(word Pos_X,word Pos_Y,word Largeur,byte* Ligne,byte Couleur_transparence) void Afficher_une_ligne_transparente_a_l_ecran_SDL(word Pos_X,word Pos_Y,word Largeur,byte* Ligne,byte Couleur_transparence)
{ {
byte* ESI = Ligne; byte* ESI = Ligne;
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X; byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
byte cx; byte cx;
// Pour chaque pixel de la ligne // Pour chaque pixel de la ligne
for(cx = Largeur;cx > 0;cx--) for(cx = Largeur;cx > 0;cx--)
{ {
if(*ESI!=Couleur_transparence) if(*ESI!=Couleur_transparence)
*EDI = *ESI; *EDI = *ESI;
ESI++; ESI++;
EDI++; EDI++;
} }
} }
// Affiche une partie de la brosse couleur zoomée // Affiche une partie de la brosse couleur zoomée
void Display_brush_Color_zoom_SDL (word Pos_X,word Pos_Y, void Display_brush_Color_zoom_SDL (word Pos_X,word Pos_Y,
word Decalage_X,word Decalage_Y, word Decalage_X,word Decalage_Y,
word Largeur, // Largeur non zoomée word Largeur, // Largeur non zoomée
word Pos_Y_Fin,byte Couleur_de_transparence, word Pos_Y_Fin,byte Couleur_de_transparence,
word Largeur_brosse, // Largeur réelle de la brosse word Largeur_brosse, // Largeur réelle de la brosse
byte * Buffer) byte * Buffer)
{ {
byte* ESI = Brosse+Decalage_Y*Largeur_brosse + Decalage_X; byte* ESI = Brosse+Decalage_Y*Largeur_brosse + Decalage_X;
word DX = Pos_Y; word DX = Pos_Y;
byte bx; byte bx;
// Pour chaque ligne // Pour chaque ligne
while(1) while(1)
{ {
Zoomer_une_ligne(ESI,Buffer,Loupe_Facteur,Largeur); Zoomer_une_ligne(ESI,Buffer,Loupe_Facteur,Largeur);
// On affiche facteur fois la ligne zoomée // On affiche facteur fois la ligne zoomée
for(bx=Loupe_Facteur;bx>0;bx--) for(bx=Loupe_Facteur;bx>0;bx--)
{ {
Afficher_une_ligne_transparente_a_l_ecran_SDL(Pos_X,DX,Largeur*Loupe_Facteur,Buffer,Couleur_de_transparence); Afficher_une_ligne_transparente_a_l_ecran_SDL(Pos_X,DX,Largeur*Loupe_Facteur,Buffer,Couleur_de_transparence);
DX++; DX++;
if(DX==Pos_Y_Fin) if(DX==Pos_Y_Fin)
{ {
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur*Loupe_Facteur,Pos_Y_Fin-Pos_Y+1); SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur*Loupe_Facteur,Pos_Y_Fin-Pos_Y+1);
return; return;
} }
} }
ESI += Largeur_brosse; ESI += Largeur_brosse;
} }
// ATTENTION zone jamais atteinte // ATTENTION zone jamais atteinte
} }
void Display_brush_Mono_zoom_SDL (word Pos_X, word Pos_Y, void Display_brush_Mono_zoom_SDL (word Pos_X, word Pos_Y,
@ -419,10 +419,11 @@ void Clear_brush_zoom_SDL (word Pos_X,word Pos_Y,word Decalage_X,word Dec
void Set_Mode_SDL() void Set_Mode_SDL()
/* On règle la résolution de l'écran */ /* On règle la résolution de l'écran */
{ {
#ifdef WINDOWED #ifdef WINDOWED
#define FLAGS #define FLAGS
#else #else
#define FLAGS SDL_FULLSCREEN #define FLAGS SDL_FULLSCREEN
#endif
Ecran_SDL=SDL_SetVideoMode(Largeur_ecran,Hauteur_ecran,8,FLAGS); Ecran_SDL=SDL_SetVideoMode(Largeur_ecran,Hauteur_ecran,8,FLAGS);
Ecran=Ecran_SDL->pixels; Ecran=Ecran_SDL->pixels;

View File

@ -188,7 +188,7 @@ WString
COBJ COBJ
49 49
WVList WVList
22 24
50 50
MCState MCState
51 51
@ -378,29 +378,29 @@ WString
1 1
0 0
97 97
MCState MRState
98 98
WString WString
3 3
WCC WCC
99 99
WString WString
30 21
n????Multithreaded application ?????Compiler default
1
1 1
0
100 100
MRState MCState
101 101
WString WString
3 3
WCC WCC
102 102
WString WString
21 30
?????Compiler default n????Multithreaded application
1
1 1
0
103 103
MRState MRState
104 104
@ -409,10 +409,10 @@ WString
WCC WCC
105 105
WString WString
37 21
?????In-line Pentium Pro instructions ?????Compiler default
1
1 1
0
106 106
MRState MRState
107 107
@ -421,10 +421,10 @@ WString
WCC WCC
108 108
WString WString
21 37
?????Compiler default ?????In-line Pentium Pro instructions
1
1 1
0
109 109
MRState MRState
110 110
@ -433,10 +433,10 @@ WString
WCC WCC
111 111
WString WString
29 21
?????In-line with coprocessor ?????Compiler default
1
1 1
0
112 112
MRState MRState
113 113
@ -445,8 +445,8 @@ WString
WCC WCC
114 114
WString WString
21 29
?????Compiler default ?????In-line with coprocessor
1 1
1 1
115 115
@ -457,398 +457,422 @@ WString
WCC WCC
117 117
WString WString
39
??2??Pentium Pro Register based calling
1
0
118
MRState
119
WString
3
WCC
120
WString
36
??2??Pentium Pro Stack based calling
1
1
121
MRState
122
WString
3
WCC
123
WString
21 21
??2??32bit Flat model ??2??32bit Flat model
1 1
0 0
118 124
WVList WVList
1 1
119 125
ActionStates ActionStates
120 126
WString WString
5 5
&Make &Make
121 127
WVList WVList
0 0
-1 -1
1 1
1 1
0 0
122 128
MItem MItem
9 9
..\aide.c ..\aide.c
123 129
WString WString
4 4
COBJ COBJ
124 130
WVList WVList
0 0
125 131
WVList WVList
1 1
126 132
ActionStates ActionStates
127 133
WString WString
5 5
&Make &Make
128 134
WVList WVList
0 0
47 47
1 1
1 1
0 0
129 135
MItem MItem
12 12
..\boutons.c ..\boutons.c
130 136
WString WString
4 4
COBJ COBJ
131 137
WVList WVList
0 0
132 138
WVList WVList
0 0
47 47
1 1
1 1
0 0
133 139
MItem MItem
11 11
..\divers.c ..\divers.c
134 140
WString WString
4 4
COBJ COBJ
135 141
WVList WVList
0 0
136 142
WVList WVList
0 0
47 47
1 1
1 1
0 0
137 143
MItem MItem
10 10
..\files.c ..\files.c
138 144
WString WString
4 4
COBJ COBJ
139 145
WVList WVList
0 0
140 146
WVList WVList
0 0
47 47
1 1
1 1
0 0
141 147
MItem MItem
10 10
..\graph.c ..\graph.c
142 148
WString WString
4 4
COBJ COBJ
143 149
WVList WVList
0 0
144 150
WVList WVList
0 0
47 47
1 1
1 1
0 0
145 151
MItem MItem
9 9
..\init.c ..\init.c
146 152
WString WString
4 4
COBJ COBJ
147 153
WVList WVList
0 0
148 154
WVList WVList
0 0
47 47
1 1
1 1
0 0
149 155
MItem MItem
13 13
..\loadsave.c ..\loadsave.c
150 156
WString WString
4 4
COBJ COBJ
151 157
WVList WVList
0 0
152 158
WVList WVList
0 0
47 47
1 1
1 1
0 0
153 159
MItem MItem
9 9
..\main.c ..\main.c
154 160
WString WString
4 4
COBJ COBJ
155 161
WVList WVList
0 0
156 162
WVList WVList
0 0
47 47
1 1
1 1
0 0
157 163
MItem MItem
11 11
..\moteur.c ..\moteur.c
158 164
WString WString
4 4
COBJ COBJ
159 165
WVList WVList
0 0
160 166
WVList WVList
0 0
47 47
1 1
1 1
0 0
161 167
MItem MItem
11 11
..\op_asm.c ..\op_asm.c
162 168
WString WString
4 4
COBJ COBJ
163 169
WVList WVList
0 0
164 170
WVList WVList
0 0
47 47
1 1
1 1
0 0
165 171
MItem MItem
9 9
..\op_c.c ..\op_c.c
166 172
WString WString
4 4
COBJ COBJ
167 173
WVList WVList
0 0
168 174
WVList WVList
0 0
47 47
1 1
1 1
0 0
169 175
MItem MItem
13 13
..\operatio.c ..\operatio.c
170 176
WString WString
4 4
COBJ COBJ
171 177
WVList WVList
0 0
172 178
WVList WVList
0 0
47 47
1 1
1 1
0 0
173 179
MItem MItem
10 10
..\pages.c ..\pages.c
174 180
WString WString
4 4
COBJ COBJ
175 181
WVList WVList
0 0
176 182
WVList WVList
0 0
47 47
1 1
1 1
0 0
177 183
MItem MItem
12 12
..\palette.c ..\palette.c
178 184
WString WString
4 4
COBJ COBJ
179 185
WVList WVList
0 0
180 186
WVList WVList
0 0
47 47
1 1
1 1
0 0
181 187
MItem MItem
12 12
..\readini.c ..\readini.c
182 188
WString WString
4 4
COBJ COBJ
183 189
WVList WVList
0 0
184 190
WVList WVList
0 0
47 47
1 1
1 1
0 0
185 191
MItem MItem
13 13
..\readline.c ..\readline.c
186 192
WString WString
4 4
COBJ COBJ
187 193
WVList WVList
0 0
188 194
WVList WVList
0 0
47 47
1 1
1 1
0 0
189 195
MItem MItem
12 12
..\saveini.c ..\saveini.c
190 196
WString WString
4 4
COBJ COBJ
191 197
WVList WVList
0 0
192 198
WVList WVList
0 0
47 47
1 1
1 1
0 0
193 199
MItem MItem
14 14
..\sdlscreen.c ..\sdlscreen.c
194 200
WString WString
4 4
COBJ COBJ
195 201
WVList WVList
0 0
196 202
WVList WVList
0 0
47 47
1 1
1 1
0 0
197 203
MItem MItem
10 10
..\shade.c ..\shade.c
198 204
WString WString
4 4
COBJ COBJ
199 205
WVList WVList
0 0
200 206
WVList WVList
0 0
47 47
1 1
1 1
0 0
201 207
MItem MItem
12 12
..\special.c ..\special.c
202 208
WString WString
4 4
COBJ COBJ
203 209
WVList WVList
0 0
204 210
WVList WVList
1 1
205 211
ActionStates ActionStates
206 212
WString WString
5 5
&Make &Make
207 213
WVList WVList
0 0
47 47

View File

@ -4,10 +4,10 @@ projectIdent
VpeMain VpeMain
1 1
WRect WRect
-40 0
-53 0
10320 10336
9973 10393
2 2
MProject MProject
3 3
@ -30,8 +30,8 @@ VComponent
WRect WRect
0 0
0 0
1230 1224
5733 5696
0 0
0 0
9 9