Subversion Repositories Kolibri OS

Rev

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

Rev 3840 Rev 4631
Line 242... Line 242...
242
	mov	cx,[right_panel_y.start_y]
242
	mov	cx,[right_panel_y.start_y]
243
	mov	ebp,read_folder_1_name   ;read_folder_1.name
243
	mov	ebp,read_folder_1_name   ;read_folder_1.name
244
	mov	edx,0x40000000+141
244
	mov	edx,0x40000000+141
245
	jmp	draw_left_select_disk_button.1
245
	jmp	draw_left_select_disk_button.1
246
;------------------------------------------------------------------------------
246
;------------------------------------------------------------------------------
247
draw_device_button:
-
 
248
	mov	edi,device_present
-
 
249
	mov	edx,120
-
 
250
	mov	bx,[left_panel_x.start_x]
-
 
251
	mov	cx,[left_panel_y.start_y]
-
 
252
	mov	eax,[left_panel_x]
-
 
253
	mov	[temp_panel_end],eax
-
 
254
	mov	[temp_counter],0
-
 
255
	call	.draw
-
 
256
	mov	edx,130
-
 
257
	mov	bx,[right_panel_x.start_x]
-
 
258
	mov	cx,[right_panel_y.start_y]
-
 
259
	mov	eax,[right_panel_x]
-
 
260
	mov	[temp_panel_end],eax
-
 
261
	mov	[temp_counter],1
-
 
262
;--------------------------------------
-
 
263
.draw:
-
 
264
	shl	ebx,16
-
 
265
	mov	bx,25
-
 
266
	sub	cx,30
-
 
267
	shl	ecx,16
-
 
268
	mov	cx,12
-
 
269
	mov	eax,8
-
 
270
	mov	esi,0xaa00
-
 
271
	cmp	[edi],byte 1
-
 
272
	jne	@f
-
 
273
 
-
 
274
	mov	ebp,read_folder_device_name.rd
-
 
275
	call	.draw_1
-
 
276
;--------------------------------------
-
 
277
@@:
-
 
278
	inc	edx
-
 
279
	cmp	[edi+1],byte 1
-
 
280
	jne	@f
-
 
281
 
-
 
282
	mov	ebp,read_folder_device_name.fd
-
 
283
	call	.draw_1
-
 
284
;--------------------------------------
-
 
285
@@:
-
 
286
	inc	edx
-
 
287
	cmp	[edi+2],byte 1
-
 
288
	jne	@f
-
 
289
 
-
 
290
	mov	ebp,read_folder_device_name.hd0
-
 
291
	call	.draw_1
-
 
292
;--------------------------------------
-
 
293
@@:
-
 
294
	inc	edx
-
 
295
	cmp	[edi+3],byte 1
-
 
296
	jne	@f
-
 
297
 
-
 
298
	mov	ebp,read_folder_device_name.hd1
-
 
299
	call	.draw_1
-
 
300
;--------------------------------------
-
 
301
@@:
-
 
302
	inc	edx
-
 
303
	cmp	[edi+4],byte 1
-
 
304
	jne	@f
-
 
305
 
-
 
306
	mov	ebp,read_folder_device_name.hd2
-
 
307
	call	.draw_1
-
 
308
;--------------------------------------
-
 
309
@@:
-
 
310
	inc	edx
-
 
311
	cmp	[edi+5],byte 1
-
 
312
	jne	@f
-
 
313
 
-
 
314
	mov	ebp,read_folder_device_name.hd3
-
 
315
	call	.draw_1
-
 
316
;--------------------------------------
-
 
317
@@:
-
 
318
	inc	edx
-
 
319
	cmp	[edi+6],byte 1
-
 
320
	jne	@f
-
 
321
 
-
 
322
	mov	ebp,read_folder_device_name.cd0
-
 
323
	call	.draw_1
-
 
324
;--------------------------------------
-
 
325
@@:
-
 
326
	inc	edx
-
 
327
	cmp	[edi+7],byte 1
-
 
328
	jne	@f
-
 
329
 
-
 
330
	mov	ebp,read_folder_device_name.cd1
-
 
331
	call	.draw_1
-
 
332
;--------------------------------------
-
 
333
@@:
-
 
334
	inc	edx
-
 
335
	cmp	[edi+8],byte 1
-
 
336
	jne	@f
-
 
337
 
-
 
338
	mov	ebp,read_folder_device_name.cd2
-
 
339
	call	.draw_1
-
 
340
;--------------------------------------
-
 
341
@@:
-
 
342
	inc	edx
-
 
343
	cmp	[edi+9],byte 1
-
 
344
	jne	@f
-
 
345
 
-
 
346
	mov	ebp,read_folder_device_name.cd3
-
 
347
	call	.draw_1
-
 
348
;--------------------------------------
-
 
349
@@:
-
 
350
	push	ebx
-
 
351
	mov	ebx,[temp_panel_end]
-
 
352
	mov	ax,bx
-
 
353
	shr	ebx,16
-
 
354
	add	eax,ebx
-
 
355
	pop	ebx
-
 
356
	ror	ebx,16
-
 
357
	sub	ax,bx
-
 
358
	rol	ebx,16
-
 
359
	mov	bx,ax
-
 
360
	add	ecx,1
-
 
361
	add	ebx,1
-
 
362
	mcall	13,,,0xcccccc
-
 
363
	cmp	[temp_counter],0
-
 
364
	je	@f
-
 
365
 
-
 
366
	mov	ax,bx
-
 
367
	shr	ebx,16
-
 
368
	add	bx,ax
-
 
369
	mov	eax,[window_width]
-
 
370
	sub	eax,4
-
 
371
	sub	ax,bx
-
 
372
	cmp	eax,0
-
 
373
	jbe	@f
-
 
374
 
-
 
375
	shl	ebx,16
-
 
376
	mov	bx,ax
-
 
377
	mov	ax,[right_panel_y.size_y]
-
 
378
	add	ax,[right_panel_y.start_y]
-
 
379
	shr	ecx,16
-
 
380
	sub	ax,cx
-
 
381
	shl	ecx,16
-
 
382
	mov	cx,ax
-
 
383
	mcall	13,,,0xcccccc
-
 
384
	ret
-
 
385
;--------------------------------------
-
 
386
.draw_1:
-
 
387
	mcall
-
 
388
	pusha
-
 
389
	mov	eax,ebx
-
 
390
	inc	eax
-
 
391
	shl	eax,16
-
 
392
	add	ebx,eax
-
 
393
	mov	bx,1
-
 
394
	inc	ecx
-
 
395
	mcall	13,,,0xcccccc
-
 
396
	popa
-
 
397
	pusha
-
 
398
	mov	edx,ebp
-
 
399
	shr	ecx,16
-
 
400
	mov	bx,cx
-
 
401
	add	ebx,2 shl 16 +3
-
 
402
	mcall	4,,0x90000000
-
 
403
	sub	ebx,1 shl 16 + 1
-
 
404
	mcall	,,0x90ffffff
-
 
405
	popa
-
 
406
	add	ebx,27 shl 16
-
 
407
;--------------------------------------
-
 
408
@@:
-
 
409
	ret
-
 
410
;------------------------------------------------------------------------------
-
 
411
draw_ATAPI_tray_control:
247
;draw_ATAPI_tray_control:
412
	ret
248
;	ret
413
;------------------------------------------------------------------------------
249
;------------------------------------------------------------------------------
414
calc_max_panel_line:
250
calc_max_panel_line:
415
	xor	eax,eax
251
	xor	eax,eax
416
	mov	ax,[left_panel_y.size_y]
252
	mov	ax,[left_panel_y.size_y]
417
	mov	ebx,10
253
	mov	ebx,10