Rev 552 | Rev 1636 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 552 | Rev 1632 | ||
---|---|---|---|
Line 170... | Line 170... | ||
170 | mov edx,11100000000000000000000000000000b |
170 | mov edx,11100000000000000000000000000000b |
171 | add edx,1000 |
171 | add edx,1000 |
172 | mcall |
172 | mcall |
Line 173... | Line 173... | ||
173 | 173 | ||
174 | ;get memory for new picture |
- | |
175 | mov eax,[Picture_SizeX] |
- | |
176 | mov ebx,[Picture_SizeY] |
- | |
177 | - | ||
178 | imul eax,ebx |
- | |
179 | lea eax,[eax+eax*2] |
- | |
180 | - | ||
181 | mov ebx,[ScreenPointer] |
- | |
182 | add ebx,(1200*1000*3)+50*(20*20*3)+500000 |
- | |
183 | - | ||
184 | mov [PointerToPicture],ebx |
- | |
185 | mov [PointerToCopyPicture],ebx |
- | |
186 | mov [PointerToCopyPicture2],ebx |
- | |
187 | mov [PointerToEditBufer],ebx |
- | |
188 | mov [PointerToSpriteBufer],ebx |
- | |
189 | - | ||
190 | add [PointerToCopyPicture],eax |
- | |
191 | - | ||
192 | add [PointerToCopyPicture2],eax |
- | |
193 | add [PointerToCopyPicture2],eax |
- | |
194 | - | ||
195 | add [PointerToEditBufer],eax |
- | |
196 | add [PointerToEditBufer],eax |
- | |
197 | add [PointerToEditBufer],eax |
- | |
198 | - | ||
199 | add [PointerToSpriteBufer],eax |
- | |
200 | add [PointerToSpriteBufer],eax |
- | |
201 | add [PointerToSpriteBufer],eax |
- | |
Line 202... | Line 174... | ||
202 | add [PointerToSpriteBufer],eax |
174 | ;get memory for new picture |
Line 203... | Line 175... | ||
203 | 175 | ||
204 | call GetMemory |
176 | call GetMemory |
Line 215... | Line 187... | ||
215 | 187 | ||
216 | ;<<<< |
188 | ;<<<< |
217 | cmp [number_menu],2 |
189 | cmp [number_menu],2 |
Line 218... | Line 190... | ||
218 | jne no_open |
190 | jne no_open |
- | 191 | ||
- | 192 | ; opendialog drawwin,open_1,open_2,file_path |
|
- | 193 | ;--------------------------------------------------------------------- |
|
- | 194 | mov [OpenDialog_data.type],0 ; open |
|
- | 195 | ||
- | 196 | push dword OpenDialog_data |
|
- | 197 | call [OpenDialog_Start] |
|
- | 198 | ||
- | 199 | cmp [OpenDialog_data.status],1 |
|
- | 200 | jne still |
|
219 | 201 | ;--------------------------------------------------------------------- |
|
Line 220... | Line 202... | ||
220 | opendialog drawwin,open_1,open_2,file_path |
202 | |
221 | open_1: |
203 | open_1: |
222 | 204 | ||
Line 276... | Line 258... | ||
276 | exit_type: |
258 | exit_type: |
Line 277... | Line 259... | ||
277 | 259 | ||
278 | ;---------------------------------------------------------- |
260 | ;---------------------------------------------------------- |
279 | ;Get momory for unpacking picture and for picture's bufers |
261 | ;Get momory for unpacking picture and for picture's bufers |
280 | ;---------------------------------------------------------- |
- | |
281 | mov eax,[Picture_SizeX] |
- | |
282 | mov ebx,[Picture_SizeY] |
- | |
283 | - | ||
284 | imul eax,ebx |
- | |
285 | lea eax,[eax+eax*2] |
- | |
286 | - | ||
287 | mov ebx,[ScreenPointer] |
- | |
288 | add ebx,(1200*1000*3)+50*(20*20*3)+500000 |
- | |
289 | - | ||
290 | mov [PointerToPicture],ebx |
- | |
291 | mov [PointerToCopyPicture],ebx |
- | |
292 | mov [PointerToCopyPicture2],ebx |
- | |
293 | mov [PointerToEditBufer],ebx |
- | |
294 | mov [PointerToSpriteBufer],ebx |
- | |
295 | - | ||
296 | add [PointerToCopyPicture],eax |
- | |
297 | - | ||
298 | add [PointerToCopyPicture2],eax |
- | |
299 | add [PointerToCopyPicture2],eax |
- | |
300 | - | ||
301 | add [PointerToEditBufer],eax |
- | |
302 | add [PointerToEditBufer],eax |
- | |
303 | add [PointerToEditBufer],eax |
- | |
304 | - | ||
305 | add [PointerToSpriteBufer],eax |
- | |
306 | add [PointerToSpriteBufer],eax |
- | |
307 | add [PointerToSpriteBufer],eax |
- | |
308 | add [PointerToSpriteBufer],eax |
- | |
309 | 262 | ;---------------------------------------------------------- |
|
310 | call GetMemory |
263 | call GetMemory |
311 | ;---------------------------------------------------------- |
264 | ;---------------------------------------------------------- |
312 | ;--------------------Load file in memory------------------- |
265 | ;--------------------Load file in memory------------------- |
Line 378... | Line 331... | ||
378 | 331 | ||
379 | ;<<<<<<<< |
332 | ;<<<<<<<< |
380 | cmp [number_menu],4 |
333 | cmp [number_menu],4 |
Line 381... | Line 334... | ||
381 | jne no_save |
334 | jne no_save |
- | 335 | ||
- | 336 | ; savedialog drawwin,save1,save2,file_path |
|
- | 337 | ;--------------------------------------------------------------------- |
|
- | 338 | mov [OpenDialog_data.type],1 ; save |
|
- | 339 | ||
- | 340 | push dword OpenDialog_data |
|
- | 341 | call [OpenDialog_Start] |
|
- | 342 | ||
- | 343 | cmp [OpenDialog_data.status],1 |
|
Line 382... | Line 344... | ||
382 | 344 | jne still |
|
Line 383... | Line 345... | ||
383 | savedialog drawwin,save1,save2,file_path |
345 | ;--------------------------------------------------------------------- |
384 | 346 |