fixes to build under vista
git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@95 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
parent
bcced2c747
commit
cdf5a760b2
133
sdlscreen.c
133
sdlscreen.c
@ -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)
|
||||
{
|
||||
// EDI = Position à l'écran
|
||||
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
|
||||
// ESI = Position dans la brosse
|
||||
byte* ESI = Brosse + Decalage_Y * Largeur_brosse + Decalage_X;
|
||||
// EDI = Position à l'écran
|
||||
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
|
||||
// ESI = Position dans la brosse
|
||||
byte* ESI = Brosse + Decalage_Y * Largeur_brosse + Decalage_X;
|
||||
|
||||
word DX,CX;
|
||||
word DX,CX;
|
||||
|
||||
// Pour chaque ligne
|
||||
for(DX = Hauteur;DX > 0; DX--)
|
||||
{
|
||||
// Pour chaque pixel
|
||||
for(CX = Largeur;CX > 0; CX--)
|
||||
{
|
||||
// On vérifie que ce n'est pas la transparence
|
||||
if(*ESI != Couleur_de_transparence)
|
||||
{
|
||||
*EDI = *ESI;
|
||||
}
|
||||
// Pour chaque ligne
|
||||
for(DX = Hauteur;DX > 0; DX--)
|
||||
{
|
||||
// Pour chaque pixel
|
||||
for(CX = Largeur;CX > 0; CX--)
|
||||
{
|
||||
// On vérifie que ce n'est pas la transparence
|
||||
if(*ESI != Couleur_de_transparence)
|
||||
{
|
||||
*EDI = *ESI;
|
||||
}
|
||||
|
||||
// Pixel suivant
|
||||
ESI++; EDI++;
|
||||
}
|
||||
// Pixel suivant
|
||||
ESI++; EDI++;
|
||||
}
|
||||
|
||||
// On passe à la ligne suivante
|
||||
EDI = EDI + Largeur_ecran - Largeur;
|
||||
ESI = ESI + Largeur_brosse - Largeur;
|
||||
}
|
||||
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur,Hauteur);
|
||||
// On passe à la ligne suivante
|
||||
EDI = EDI + Largeur_ecran - Largeur;
|
||||
ESI = ESI + Largeur_brosse - Largeur;
|
||||
}
|
||||
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur,Hauteur);
|
||||
}
|
||||
|
||||
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)
|
||||
{
|
||||
byte* ESI = Ligne;
|
||||
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
|
||||
byte* ESI = Ligne;
|
||||
byte* EDI = Ecran + Pos_Y * Largeur_ecran + Pos_X;
|
||||
|
||||
byte cx;
|
||||
byte cx;
|
||||
|
||||
// Pour chaque pixel de la ligne
|
||||
for(cx = Largeur;cx > 0;cx--)
|
||||
{
|
||||
if(*ESI!=Couleur_transparence)
|
||||
*EDI = *ESI;
|
||||
ESI++;
|
||||
EDI++;
|
||||
}
|
||||
// Pour chaque pixel de la ligne
|
||||
for(cx = Largeur;cx > 0;cx--)
|
||||
{
|
||||
if(*ESI!=Couleur_transparence)
|
||||
*EDI = *ESI;
|
||||
ESI++;
|
||||
EDI++;
|
||||
}
|
||||
}
|
||||
|
||||
// Affiche une partie de la brosse couleur zoomée
|
||||
void Display_brush_Color_zoom_SDL (word Pos_X,word Pos_Y,
|
||||
word Decalage_X,word Decalage_Y,
|
||||
word Largeur, // Largeur non zoomée
|
||||
word Pos_Y_Fin,byte Couleur_de_transparence,
|
||||
word Largeur_brosse, // Largeur réelle de la brosse
|
||||
byte * Buffer)
|
||||
word Decalage_X,word Decalage_Y,
|
||||
word Largeur, // Largeur non zoomée
|
||||
word Pos_Y_Fin,byte Couleur_de_transparence,
|
||||
word Largeur_brosse, // Largeur réelle de la brosse
|
||||
byte * Buffer)
|
||||
{
|
||||
byte* ESI = Brosse+Decalage_Y*Largeur_brosse + Decalage_X;
|
||||
word DX = Pos_Y;
|
||||
byte bx;
|
||||
byte* ESI = Brosse+Decalage_Y*Largeur_brosse + Decalage_X;
|
||||
word DX = Pos_Y;
|
||||
byte bx;
|
||||
|
||||
// Pour chaque ligne
|
||||
while(1)
|
||||
{
|
||||
Zoomer_une_ligne(ESI,Buffer,Loupe_Facteur,Largeur);
|
||||
// On affiche facteur fois la ligne zoomée
|
||||
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);
|
||||
DX++;
|
||||
if(DX==Pos_Y_Fin)
|
||||
{
|
||||
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur*Loupe_Facteur,Pos_Y_Fin-Pos_Y+1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
ESI += Largeur_brosse;
|
||||
|
||||
}
|
||||
// ATTENTION zone jamais atteinte
|
||||
// Pour chaque ligne
|
||||
while(1)
|
||||
{
|
||||
Zoomer_une_ligne(ESI,Buffer,Loupe_Facteur,Largeur);
|
||||
// On affiche facteur fois la ligne zoomée
|
||||
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);
|
||||
DX++;
|
||||
if(DX==Pos_Y_Fin)
|
||||
{
|
||||
SDL_UpdateRect(Ecran_SDL,Pos_X,Pos_Y,Largeur*Loupe_Facteur,Pos_Y_Fin-Pos_Y+1);
|
||||
return;
|
||||
}
|
||||
}
|
||||
ESI += Largeur_brosse;
|
||||
|
||||
}
|
||||
// ATTENTION zone jamais atteinte
|
||||
}
|
||||
|
||||
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()
|
||||
/* On règle la résolution de l'écran */
|
||||
{
|
||||
#ifdef WINDOWED
|
||||
#define FLAGS
|
||||
#else
|
||||
#define FLAGS SDL_FULLSCREEN
|
||||
#ifdef WINDOWED
|
||||
#define FLAGS
|
||||
#else
|
||||
#define FLAGS SDL_FULLSCREEN
|
||||
#endif
|
||||
Ecran_SDL=SDL_SetVideoMode(Largeur_ecran,Hauteur_ecran,8,FLAGS);
|
||||
Ecran=Ecran_SDL->pixels;
|
||||
|
||||
|
||||
@ -188,7 +188,7 @@ WString
|
||||
COBJ
|
||||
49
|
||||
WVList
|
||||
22
|
||||
24
|
||||
50
|
||||
MCState
|
||||
51
|
||||
@ -378,29 +378,29 @@ WString
|
||||
1
|
||||
0
|
||||
97
|
||||
MCState
|
||||
MRState
|
||||
98
|
||||
WString
|
||||
3
|
||||
WCC
|
||||
99
|
||||
WString
|
||||
30
|
||||
n????Multithreaded application
|
||||
1
|
||||
21
|
||||
?????Compiler default
|
||||
1
|
||||
0
|
||||
100
|
||||
MRState
|
||||
MCState
|
||||
101
|
||||
WString
|
||||
3
|
||||
WCC
|
||||
102
|
||||
WString
|
||||
21
|
||||
?????Compiler default
|
||||
30
|
||||
n????Multithreaded application
|
||||
1
|
||||
1
|
||||
0
|
||||
103
|
||||
MRState
|
||||
104
|
||||
@ -409,10 +409,10 @@ WString
|
||||
WCC
|
||||
105
|
||||
WString
|
||||
37
|
||||
?????In-line Pentium Pro instructions
|
||||
1
|
||||
21
|
||||
?????Compiler default
|
||||
1
|
||||
0
|
||||
106
|
||||
MRState
|
||||
107
|
||||
@ -421,10 +421,10 @@ WString
|
||||
WCC
|
||||
108
|
||||
WString
|
||||
21
|
||||
?????Compiler default
|
||||
37
|
||||
?????In-line Pentium Pro instructions
|
||||
1
|
||||
1
|
||||
0
|
||||
109
|
||||
MRState
|
||||
110
|
||||
@ -433,10 +433,10 @@ WString
|
||||
WCC
|
||||
111
|
||||
WString
|
||||
29
|
||||
?????In-line with coprocessor
|
||||
1
|
||||
21
|
||||
?????Compiler default
|
||||
1
|
||||
0
|
||||
112
|
||||
MRState
|
||||
113
|
||||
@ -445,8 +445,8 @@ WString
|
||||
WCC
|
||||
114
|
||||
WString
|
||||
21
|
||||
?????Compiler default
|
||||
29
|
||||
?????In-line with coprocessor
|
||||
1
|
||||
1
|
||||
115
|
||||
@ -457,398 +457,422 @@ WString
|
||||
WCC
|
||||
117
|
||||
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
|
||||
??2??32bit Flat model
|
||||
1
|
||||
0
|
||||
118
|
||||
124
|
||||
WVList
|
||||
1
|
||||
119
|
||||
125
|
||||
ActionStates
|
||||
120
|
||||
126
|
||||
WString
|
||||
5
|
||||
&Make
|
||||
121
|
||||
127
|
||||
WVList
|
||||
0
|
||||
-1
|
||||
1
|
||||
1
|
||||
0
|
||||
122
|
||||
128
|
||||
MItem
|
||||
9
|
||||
..\aide.c
|
||||
123
|
||||
129
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
124
|
||||
130
|
||||
WVList
|
||||
0
|
||||
125
|
||||
131
|
||||
WVList
|
||||
1
|
||||
126
|
||||
132
|
||||
ActionStates
|
||||
127
|
||||
133
|
||||
WString
|
||||
5
|
||||
&Make
|
||||
128
|
||||
134
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
129
|
||||
135
|
||||
MItem
|
||||
12
|
||||
..\boutons.c
|
||||
130
|
||||
136
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
131
|
||||
137
|
||||
WVList
|
||||
0
|
||||
132
|
||||
138
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
133
|
||||
139
|
||||
MItem
|
||||
11
|
||||
..\divers.c
|
||||
134
|
||||
140
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
135
|
||||
141
|
||||
WVList
|
||||
0
|
||||
136
|
||||
142
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
137
|
||||
143
|
||||
MItem
|
||||
10
|
||||
..\files.c
|
||||
138
|
||||
144
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
139
|
||||
145
|
||||
WVList
|
||||
0
|
||||
140
|
||||
146
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
141
|
||||
147
|
||||
MItem
|
||||
10
|
||||
..\graph.c
|
||||
142
|
||||
148
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
143
|
||||
149
|
||||
WVList
|
||||
0
|
||||
144
|
||||
150
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
145
|
||||
151
|
||||
MItem
|
||||
9
|
||||
..\init.c
|
||||
146
|
||||
152
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
147
|
||||
153
|
||||
WVList
|
||||
0
|
||||
148
|
||||
154
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
149
|
||||
155
|
||||
MItem
|
||||
13
|
||||
..\loadsave.c
|
||||
150
|
||||
156
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
151
|
||||
157
|
||||
WVList
|
||||
0
|
||||
152
|
||||
158
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
153
|
||||
159
|
||||
MItem
|
||||
9
|
||||
..\main.c
|
||||
154
|
||||
160
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
155
|
||||
161
|
||||
WVList
|
||||
0
|
||||
156
|
||||
162
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
157
|
||||
163
|
||||
MItem
|
||||
11
|
||||
..\moteur.c
|
||||
158
|
||||
164
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
159
|
||||
165
|
||||
WVList
|
||||
0
|
||||
160
|
||||
166
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
161
|
||||
167
|
||||
MItem
|
||||
11
|
||||
..\op_asm.c
|
||||
162
|
||||
168
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
163
|
||||
169
|
||||
WVList
|
||||
0
|
||||
164
|
||||
170
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
165
|
||||
171
|
||||
MItem
|
||||
9
|
||||
..\op_c.c
|
||||
166
|
||||
172
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
167
|
||||
173
|
||||
WVList
|
||||
0
|
||||
168
|
||||
174
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
169
|
||||
175
|
||||
MItem
|
||||
13
|
||||
..\operatio.c
|
||||
170
|
||||
176
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
171
|
||||
177
|
||||
WVList
|
||||
0
|
||||
172
|
||||
178
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
173
|
||||
179
|
||||
MItem
|
||||
10
|
||||
..\pages.c
|
||||
174
|
||||
180
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
175
|
||||
181
|
||||
WVList
|
||||
0
|
||||
176
|
||||
182
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
177
|
||||
183
|
||||
MItem
|
||||
12
|
||||
..\palette.c
|
||||
178
|
||||
184
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
179
|
||||
185
|
||||
WVList
|
||||
0
|
||||
180
|
||||
186
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
181
|
||||
187
|
||||
MItem
|
||||
12
|
||||
..\readini.c
|
||||
182
|
||||
188
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
183
|
||||
189
|
||||
WVList
|
||||
0
|
||||
184
|
||||
190
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
185
|
||||
191
|
||||
MItem
|
||||
13
|
||||
..\readline.c
|
||||
186
|
||||
192
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
187
|
||||
193
|
||||
WVList
|
||||
0
|
||||
188
|
||||
194
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
189
|
||||
195
|
||||
MItem
|
||||
12
|
||||
..\saveini.c
|
||||
190
|
||||
196
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
191
|
||||
197
|
||||
WVList
|
||||
0
|
||||
192
|
||||
198
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
193
|
||||
199
|
||||
MItem
|
||||
14
|
||||
..\sdlscreen.c
|
||||
194
|
||||
200
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
195
|
||||
201
|
||||
WVList
|
||||
0
|
||||
196
|
||||
202
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
197
|
||||
203
|
||||
MItem
|
||||
10
|
||||
..\shade.c
|
||||
198
|
||||
204
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
199
|
||||
205
|
||||
WVList
|
||||
0
|
||||
200
|
||||
206
|
||||
WVList
|
||||
0
|
||||
47
|
||||
1
|
||||
1
|
||||
0
|
||||
201
|
||||
207
|
||||
MItem
|
||||
12
|
||||
..\special.c
|
||||
202
|
||||
208
|
||||
WString
|
||||
4
|
||||
COBJ
|
||||
203
|
||||
209
|
||||
WVList
|
||||
0
|
||||
204
|
||||
210
|
||||
WVList
|
||||
1
|
||||
205
|
||||
211
|
||||
ActionStates
|
||||
206
|
||||
212
|
||||
WString
|
||||
5
|
||||
&Make
|
||||
207
|
||||
213
|
||||
WVList
|
||||
0
|
||||
47
|
||||
|
||||
@ -4,10 +4,10 @@ projectIdent
|
||||
VpeMain
|
||||
1
|
||||
WRect
|
||||
-40
|
||||
-53
|
||||
10320
|
||||
9973
|
||||
0
|
||||
0
|
||||
10336
|
||||
10393
|
||||
2
|
||||
MProject
|
||||
3
|
||||
@ -30,8 +30,8 @@ VComponent
|
||||
WRect
|
||||
0
|
||||
0
|
||||
1230
|
||||
5733
|
||||
1224
|
||||
5696
|
||||
0
|
||||
0
|
||||
9
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user