Subversion Repositories Kolibri OS

Rev

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

Rev 1632 Rev 1643
Line 1... Line 1...
1
;*******************************************************
1
;*******************************************************
2
;**************GRAPHICS EDITOR ANIMAGE *****************
2
;**************GRAPHICS EDITOR ANIMAGE *****************
3
;*******************************************************
3
;*******************************************************
-
 
4
; version:	1.3
-
 
5
; last update:  05/10/2010
-
 
6
; written by:   Marat Zakiyanov aka Mario79, aka Mario
-
 
7
; changes:      Fixed window flicker when redrawing,
-
 
8
;               Fixed memory leak for stack
-
 
9
;--------------------------------------------------------
4
; version:	1.2
10
; version:	1.2
5
; last update:  30/09/2010
11
; last update:  30/09/2010
6
; written by:   Marat Zakiyanov aka Mario79, aka Mario
12
; written by:   Marat Zakiyanov aka Mario79, aka Mario
7
; changes:      Program used function 68 instead 64 is now,
13
; changes:      Program used function 68 instead 64 is now,
8
;               select path with OpenDialog
14
;               select path with OpenDialog
Line 67... Line 73...
67
	mov	eax,CursorsID
73
	mov	eax,CursorsID
68
	call	load_cursors
74
	call	load_cursors
Line 69... Line 75...
69
 
75
 
70
	call	drawwin
76
	call	drawwin
71
;---------------------------------------------------------
77
;---------------------------------------------------------
72
;---------Check loading of file from psrsmeters-----------
78
;---------Check loading of file from parameters-----------
73
;---------------------------------------------------------
79
;---------------------------------------------------------
74
;	mov	eax,parameters
80
;	mov	eax,parameters
75
;	mov	ebx,file_path
81
;	mov	ebx,file_path
76
;	call	check_loading_from_parameters
82
;	call	check_loading_from_parameters
Line 96... Line 102...
96
	call    [OpenDialog_Init]
102
	call    [OpenDialog_Init]
97
;---------------------------------------------------------------------
103
;---------------------------------------------------------------------
98
;----------------------------------------------------------
104
;----------------------------------------------------------
99
;---------------------MAIN LOOP----------------------------
105
;---------------------MAIN LOOP----------------------------
100
;----------------------------------------------------------
106
;----------------------------------------------------------
-
 
107
red:
-
 
108
	call	drawwin
101
still:
109
still:
102
	call	event
110
	call	event
103
	cmp	eax,1
-
 
104
	jne	no_redraw_window
-
 
Line 105... Line 111...
105
 
111
 
106
	call	drawwin
112
	cmp	eax,1
Line 107... Line -...
107
	jmp	still
-
 
108
 
113
	je	red
109
no_redraw_window:
114
 
Line 110... Line 115...
110
	cmp	eax,2
115
	cmp	eax,2
111
	je	keys
116
	je	keys
Line 150... Line 155...
150
include	'memory.inc'
155
include	'memory.inc'
151
;-----------------------------------------------------------
156
;-----------------------------------------------------------
152
;------------variables and data of program------------------
157
;------------variables and data of program------------------
153
;-----------------------------------------------------------
158
;-----------------------------------------------------------
154
sound_havent_memory	db 150,64,0
159
sound_havent_memory	db 150,64,0
-
 
160
 
155
include 'lib_data.inc'
161
include 'lib_data.inc'
156
include	'panel_data.inc'
162
include	'panel_data.inc'
157
include	'palitra256.inc'
163
include	'palitra256.inc'
158
include	'brushes.inc'
164
include	'brushes.inc'
159
include	'spray.inc'
165
include	'spray.inc'
Line 304... Line 310...
304
IncludeUGlobals
310
IncludeUGlobals
305
;---------------------------------------------------------------------
311
;---------------------------------------------------------------------
306
align 4
312
align 4
307
CursorsID	rd 10
313
CursorsID	rd 10
308
;---------------------------------------------------------------------
314
;---------------------------------------------------------------------
309
;align 4
-
 
310
;parameters
-
 
311
;	rb 257
-
 
312
;---------------------------------------------------------------------
-
 
313
align 4
315
align 4
314
file_path:
316
file_path:
315
	rb 4096	;rb 1024+16
317
	rb 4096
316
;---------------------------------------------------------------------
318
;---------------------------------------------------------------------
317
align 4
319
align 4
318
filename_area:
320
filename_area:
319
	rb 256
321
	rb 256
320
;---------------------------------------------------------------------
322
;---------------------------------------------------------------------
Line 333... Line 335...
333
align 4
335
align 4
334
procinfo:
336
procinfo:
335
	rb 1024
337
	rb 1024
336
;---------------------------------------------------------------------
338
;---------------------------------------------------------------------
337
align 4
339
align 4
338
IPC_table	rd 256
-
 
339
;---------------------------------------------------------------------
-
 
340
align 4
-
 
341
	rb 4096
340
	rb 4096
342
stacktop:
341
stacktop:
343
;---------------------------------------------------------------------
342
;---------------------------------------------------------------------
344
I_END:
343
I_END:
345
344