Subversion Repositories Kolibri OS

Rev

Rev 7271 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7271 Rev 7274
Line 1... Line -...
1
// Actions history
-
 
Line 2... Line 1...
2
 
1
#define MAX_ACTIONS_COUNT 15
Line 3... Line 2...
3
#define MAX_ACTIONS_COUNT 15
2
 
4
 
3
struct _ActionsHistory {
Line 22... Line 21...
22
	dword i;
21
 
Line 23... Line 22...
23
 
22
	head = tail = 0;
24
	head = tail = 0;
23
	currentIndex = -1;
Line 25... Line 24...
25
	currentIndex = -1;
24
 
-
 
25
	for (i = 0; i < MAX_ACTIONS_COUNT; i++) {
26
 
26
		stack[i] = free(stack[i]);
-
 
27
		stack[i] = malloc(image.columns * image.rows * 4);
Line 27... Line 28...
27
	for (i = 0; i < MAX_ACTIONS_COUNT; i++)
28
	}
28
		stack[i] = malloc(image.columns * image.rows * 4);
29
 
Line 29... Line 30...
29
 
30
	saveCurrentState();