Mercurial > mm7
comparison mm7_6.cpp @ 1574:2d9c8f609a3c
Here and there cleanings.
author | Nomad |
---|---|
date | Mon, 09 Sep 2013 17:17:53 +0200 |
parents | 9f8b3e904e14 |
children | 43d3536a20f7 |
comparison
equal
deleted
inserted
replaced
1573:6d759814a817 | 1574:2d9c8f609a3c |
---|---|
207 if ( v22 < 3 ) | 207 if ( v22 < 3 ) |
208 return 0; | 208 return 0; |
209 return result; | 209 return result; |
210 } | 210 } |
211 | 211 |
212 //----- (004268E3) -------------------------------------------------------- | |
213 int __fastcall _4268E3_smthn_to_a1r5g5b5(unsigned int uColor) | |
214 { | |
215 unsigned int v1; // eax@1 | |
216 unsigned int v2; // edx@1 | |
217 int v3; // eax@1 | |
218 int v4; // edx@1 | |
219 unsigned int v5; // ecx@1 | |
220 | |
221 v1 = uColor >> 9; | |
222 v2 = uColor >> 6; | |
223 LOWORD(v1) = (uColor >> 9) & 0x7C00; | |
224 LOWORD(v2) = (uColor >> 6) & 0x3E0; | |
225 v3 = v2 | v1; | |
226 v4 = (unsigned __int8)uColor >> 3; | |
227 v5 = uColor >> 16; | |
228 LOWORD(v5) = v5 & 0x8000; | |
229 return v5 | v4 | v3; | |
230 } | |
231 | |
232 //----- (0042690D) -------------------------------------------------------- | |
233 int __fastcall _42690D_colors_cvt(unsigned int a1) | |
234 { | |
235 unsigned int v1; // eax@1 | |
236 unsigned int v2; // edx@1 | |
237 | |
238 v1 = a1 >> 8; | |
239 v2 = a1 >> 5; | |
240 LOWORD(v1) = (a1 >> 8) & 0xF800; | |
241 LOWORD(v2) = (a1 >> 5) & 0x7E0; | |
242 return ((unsigned __int8)a1 >> 3) | v2 | v1; | |
243 } | |
244 | 212 |
245 //----- (00426A5A) -------------------------------------------------------- | 213 //----- (00426A5A) -------------------------------------------------------- |
246 void stru319::LootActor(Actor *pActor) | 214 void stru319::LootActor(Actor *pActor) |
247 { | 215 { |
248 signed int v2; // edi@1 | 216 signed int v2; // edi@1 |