Subversion Repositories Kolibri OS

Rev

Rev 6352 | Rev 6359 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 6352 Rev 6355
Line 253... Line 253...
253
no_save:
253
no_save:
254
 ;<<<<<>>>>>>
254
 ;<<<<<>>>>>>
255
	cmp	[number_menu],5
255
	cmp	[number_menu],5
256
	jne	no_exit_program
256
	jne	no_exit_program
Line 257... Line -...
257
 
-
 
258
	mov	eax,-1
257
 
259
	mcall
258
	mcall SF_TERMINATE_PROCESS
260
;---------------------------------------------------------------------
259
;---------------------------------------------------------------------
261
no_exit_program:
260
no_exit_program:
262
no_file:
261
no_file:
263
;|||||||||||||||||||||||||||||EDIT|||||||||||||||||||||||||
262
;|||||||||||||||||||||||||||||EDIT|||||||||||||||||||||||||
Line 266... Line 265...
266
	jne	still	;no_edit
265
	jne	still ;no_edit
Line 267... Line 266...
267
 
266
 
268
	cmp	[number_menu],1
267
	cmp	[number_menu],1
Line 269... Line 268...
269
	jne	no_undo
268
	jne	no_undo
270
 
269
 
Line -... Line 270...
-
 
270
	cmp	[number_undo],2 ;2 - maximum undo count
-
 
271
	jge	no_undo
-
 
272
 
271
	cmp	[number_undo],1
273
;rotate bufers -1
-
 
274
	inc	[number_undo]
-
 
275
	mov eax,[PointerToPicture]
-
 
276
	mov ebx,[PointerToCopyPicture]
-
 
277
	mov ecx,[PointerToCopyPicture2]
Line 272... Line -...
272
	jne	no_one____
-
 
273
 
-
 
274
	mov	esi,[PointerToCopyPicture]
-
 
275
 
-
 
276
no_one____:
-
 
277
	cmp	[number_undo],2
-
 
278
	jne	no_two____
-
 
279
 
-
 
280
	mov	esi,[PointerToCopyPicture2]
-
 
281
 
-
 
282
no_two____:
-
 
283
	mov	edi,[PointerToPicture]
-
 
284
	mov	ecx,[Picture_SizeX]
-
 
285
	imul	ecx,[Picture_SizeY]
-
 
286
	lea	ecx,[ecx+ecx*2]
-
 
287
	add	ecx,4
278
	mov [PointerToPicture],ebx
288
	shr	ecx,2
-
 
289
	cld
-
 
290
	rep	movsd
-
 
291
	call	MovePictureToWorkScreen
-
 
292
 
-
 
293
	dec	[number_undo]
-
 
294
	jnz	no_null_undo
-
 
295
 
279
	mov [PointerToCopyPicture],ecx
296
	mov	[number_undo],1
280
	mov [PointerToCopyPicture2],eax
297
 
281
 
298
no_null_undo:
282
	call MovePictureToWorkScreen
299
	and	[number_panel],0
283
	and	[number_panel],0