Subversion Repositories Kolibri OS

Rev

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

Rev 7193 Rev 7205
Line 1... Line 1...
1
use32
1
use32
2
	org 0x0
2
	org 0
3
	db 'MENUET01' ;¨¤¥­â¨ä. ¨á¯®«­ï¥¬®£® ä ©«  ¢á¥£¤  8 ¡ ©â
3
	db 'MENUET01' ;¨¤¥­â¨ä. ¨á¯®«­ï¥¬®£® ä ©«  ¢á¥£¤  8 ¡ ©â
4
	dd 1, start, i_end, mem, stacktop, openfile_path, sys_path
4
	dd 1, start, i_end, mem, stacktop, openfile_path, sys_path
Line 5... Line 5...
5
 
5
 
6
include '../../../../programs/macros.inc'
6
include '../../../../programs/macros.inc'
Line 10... Line 10...
10
include 'vox_draw.inc'
10
include 'vox_draw.inc'
11
include 'vox_rotate.inc'
11
include 'vox_rotate.inc'
12
include 'str.inc'
12
include 'str.inc'
Line 13... Line 13...
13
 
13
 
14
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
14
@use_library_mem mem.Alloc,mem.Free,mem.ReAlloc,dll.Load
Line 15... Line -...
15
caption db 'Voxel editor 17.03.18',0 ;¯®¤¯¨áì ®ª­ 
-
 
16
 
15
caption db 'Voxel editor 22.03.18',0 ;¯®¤¯¨áì ®ª­ 
17
fn_toolbar db 'toolbar.png',0
16
 
18
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3
17
IMAGE_TOOLBAR_ICON_SIZE equ 16*16*3
Line 19... Line 18...
19
image_data_toolbar dd 0
18
image_data_toolbar dd 0
Line 116... Line 115...
116
	mov [buf_pl.w],eax
115
	mov [buf_pl.w],eax
117
	add eax,[tile_size]
116
	add eax,[tile_size]
118
	mov [buf_pl.h],eax
117
	mov [buf_pl.h],eax
Line 119... Line 118...
119
 
118
 
120
	;*** § £à㧪  ªãàá®à®¢
119
	;*** § £à㧪  ªãàá®à®¢
121
	load_image_file 'cursors_gr.png',image_data_toolbar
120
	include_image_file 'cursors_gr.png',image_data_toolbar
122
	stdcall [buf2d_create_f_img], buf_curs_8,[image_data_toolbar] ;ᮧ¤ ¥¬ ¡ãä¥à
121
	stdcall [buf2d_create_f_img], buf_curs_8,[image_data_toolbar] ;ᮧ¤ ¥¬ ¡ãä¥à
Line 123... Line 122...
123
	stdcall mem.Free,[image_data_toolbar] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
122
	stdcall mem.Free,[image_data_toolbar] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
124
 
123
 
125
	load_image_file 'cursors.png',image_data_toolbar
124
	include_image_file 'cursors.png',image_data_toolbar
Line 126... Line 125...
126
	stdcall [buf2d_create_f_img], buf_curs,[image_data_toolbar] ;ᮧ¤ ¥¬ ¡ãä¥à
125
	stdcall [buf2d_create_f_img], buf_curs,[image_data_toolbar] ;ᮧ¤ ¥¬ ¡ãä¥à
127
	stdcall mem.Free,[image_data_toolbar] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
126
	stdcall mem.Free,[image_data_toolbar] ;®á¢®¡®¦¤ ¥¬ ¯ ¬ïâì
Line 135... Line 134...
135
	stdcall [buf2d_create], buf_pl ;ᮧ¤ ­¨¥ ¡ãä¥à  ¤«ï á¥ç¥­¨ï
134
	stdcall [buf2d_create], buf_pl ;ᮧ¤ ­¨¥ ¡ãä¥à  ¤«ï á¥ç¥­¨ï
Line 136... Line 135...
136
 
135
 
137
	stdcall [buf2d_vox_brush_create], buf_vox_g3, vox_6_7_z
136
	stdcall [buf2d_vox_brush_create], buf_vox_g3, vox_6_7_z
Line 138... Line 137...
138
	stdcall [buf2d_vox_brush_create], buf_vox_g2, vox_6_4_z
137
	stdcall [buf2d_vox_brush_create], buf_vox_g2, vox_6_4_z
Line 139... Line 138...
139
 
138
 
140
	load_image_file fn_toolbar, image_data_toolbar
139
	include_image_file 'toolbar.png', image_data_toolbar
Line 141... Line 140...
141
 
140