11#include " common.h"
22
3- void afficheSprite (int left, int top, int index, char * gfxData)
3+ void AffSpf (int left, int top, int index, char * gfxData)
44{
55 char * outPtr;
66 char * inPtr;
@@ -17,13 +17,13 @@ void afficheSprite(int left, int top, int index, char* gfxData)
1717 return ;
1818
1919 outPtr = logicalScreen + top*320 + left;
20- inPtr = gfxData + READ_LE_U16 (index * 2 + gfxData); // alignement unsafe
20+ inPtr = gfxData + READ_LE_U16 (index * 2 + gfxData);
2121
2222 inPtr +=4 ;
2323
24- width = READ_LE_U16 (inPtr); // alignement unsafe
24+ width = READ_LE_U16 (inPtr);
2525 inPtr+=2 ;
26- height = READ_LE_U16 (inPtr); // alignement unsafe
26+ height = READ_LE_U16 (inPtr);
2727 inPtr+=2 ;
2828
2929 offset = 320 - width;
@@ -113,7 +113,7 @@ void AffBigCadre(int x, int y, int width, int height)
113113 right = x + halfWidth;
114114 bottom = y + halfHeight;
115115
116- afficheSprite (currentLeftPosition,currentTopPosition,0 ,PtrCadre); // draw top left corner
116+ AffSpf (currentLeftPosition,currentTopPosition,0 ,PtrCadre); // draw top left corner
117117
118118 while (1 ) // draw top bar
119119 {
@@ -122,10 +122,10 @@ void AffBigCadre(int x, int y, int width, int height)
122122 if (right - 20 <= currentLeftPosition)
123123 break ;
124124
125- afficheSprite (currentLeftPosition,currentTopPosition,4 ,PtrCadre);
125+ AffSpf (currentLeftPosition,currentTopPosition,4 ,PtrCadre);
126126 }
127127
128- afficheSprite (currentLeftPosition,currentTopPosition,1 ,PtrCadre); // draw top right corner
128+ AffSpf (currentLeftPosition,currentTopPosition,1 ,PtrCadre); // draw top right corner
129129
130130 currentLeftPosition = left;
131131
@@ -136,22 +136,22 @@ void AffBigCadre(int x, int y, int width, int height)
136136 if (bottom - 20 <= currentTopPosition)
137137 break ;
138138
139- afficheSprite (currentLeftPosition,currentTopPosition,6 ,PtrCadre);
139+ AffSpf (currentLeftPosition,currentTopPosition,6 ,PtrCadre);
140140 }
141141
142142 currentLeftPosition = right - 8 ;
143143 currentTopPosition = top + 20 ;
144144
145145 while (bottom - 20 > currentTopPosition)
146146 {
147- afficheSprite (currentLeftPosition,currentTopPosition,7 ,PtrCadre);
147+ AffSpf (currentLeftPosition,currentTopPosition,7 ,PtrCadre);
148148
149149 currentTopPosition += 20 ;
150150 }
151151
152152 currentLeftPosition = left;
153153
154- afficheSprite (currentLeftPosition,currentTopPosition,2 ,PtrCadre); // draw bottom left corner
154+ AffSpf (currentLeftPosition,currentTopPosition,2 ,PtrCadre); // draw bottom left corner
155155
156156 while (1 ) // draw bottom bar
157157 {
@@ -160,12 +160,12 @@ void AffBigCadre(int x, int y, int width, int height)
160160 if (right-20 <= currentLeftPosition)
161161 break ;
162162
163- afficheSprite (currentLeftPosition,currentTopPosition+12 ,5 ,PtrCadre);
163+ AffSpf (currentLeftPosition,currentTopPosition+12 ,5 ,PtrCadre);
164164 }
165165
166- afficheSprite (currentLeftPosition,currentTopPosition,3 ,PtrCadre); // draw bottom right corner
166+ AffSpf (currentLeftPosition,currentTopPosition,3 ,PtrCadre); // draw bottom right corner
167167
168- afficheSprite (x-20 ,currentTopPosition+12 ,8 ,PtrCadre); // draw "in the dark"
168+ AffSpf (x-20 ,currentTopPosition+12 ,8 ,PtrCadre); // draw "in the dark"
169169
170170 WindowX1 = left + 8 ;
171171 WindowY1 = top + 8 ;
0 commit comments