2007-03-26 14:18:08 +02:00
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
;; ;;
|
|
|
|
;; Copyright (C) KolibriOS team 2004-2007. All rights reserved. ;;
|
|
|
|
;; Distributed under terms of the GNU General Public License ;;
|
|
|
|
;; ;;
|
|
|
|
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
|
|
|
2007-07-27 15:52:03 +02:00
|
|
|
$Revision$
|
|
|
|
|
|
|
|
|
2005-10-14 17:40:15 +02:00
|
|
|
include "skindata.inc"
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2007-03-01 21:32:19 +01:00
|
|
|
;skin_data = 0x00778000
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2007-05-25 11:37:08 +02:00
|
|
|
read_skin_file:
|
|
|
|
stdcall load_file, ebx
|
|
|
|
test eax, eax
|
|
|
|
jz .notfound
|
|
|
|
cmp dword [eax], 'SKIN'
|
|
|
|
jnz .noskin
|
|
|
|
cmp ebx, 32*1024
|
|
|
|
jb @f
|
|
|
|
mov ebx, 32*1024
|
|
|
|
@@:
|
|
|
|
lea ecx, [ebx+3]
|
|
|
|
shr ecx, 2
|
|
|
|
mov esi, eax
|
|
|
|
mov edi, skin_data
|
|
|
|
rep movsd
|
|
|
|
stdcall kernel_free, eax
|
2007-05-11 21:38:23 +02:00
|
|
|
|
2007-05-25 11:37:08 +02:00
|
|
|
call parse_skin_data
|
|
|
|
xor eax, eax
|
|
|
|
ret
|
|
|
|
.notfound:
|
|
|
|
xor eax, eax
|
|
|
|
inc eax
|
|
|
|
ret
|
|
|
|
.noskin:
|
|
|
|
stdcall kernel_free, eax
|
|
|
|
push 2
|
|
|
|
pop eax
|
|
|
|
ret
|
2007-05-11 21:38:23 +02:00
|
|
|
|
2006-02-18 11:41:47 +01:00
|
|
|
struct SKIN_HEADER
|
|
|
|
.ident dd ?
|
|
|
|
.version dd ?
|
|
|
|
.params dd ?
|
|
|
|
.buttons dd ?
|
|
|
|
.bitmaps dd ?
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct SKIN_PARAMS
|
|
|
|
.skin_height dd ?
|
|
|
|
.margin.right dw ?
|
|
|
|
.margin.left dw ?
|
|
|
|
.margin.bottom dw ?
|
|
|
|
.margin.top dw ?
|
|
|
|
.colors.inner dd ?
|
|
|
|
.colors.outer dd ?
|
|
|
|
.colors.frame dd ?
|
|
|
|
.colors_1.inner dd ?
|
|
|
|
.colors_1.outer dd ?
|
|
|
|
.colors_1.frame dd ?
|
|
|
|
.dtp.size dd ?
|
|
|
|
.dtp.data db 40 dup (?)
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct SKIN_BUTTONS
|
|
|
|
.type dd ?
|
2010-01-05 02:28:11 +01:00
|
|
|
.pos:
|
2006-02-18 11:41:47 +01:00
|
|
|
.left dw ?
|
|
|
|
.top dw ?
|
2010-01-05 02:28:11 +01:00
|
|
|
.size:
|
2006-02-18 11:41:47 +01:00
|
|
|
.width dw ?
|
|
|
|
.height dw ?
|
|
|
|
ends
|
|
|
|
|
|
|
|
struct SKIN_BITMAPS
|
|
|
|
.kind dw ?
|
|
|
|
.type dw ?
|
|
|
|
.data dd ?
|
|
|
|
ends
|
|
|
|
|
2007-05-25 11:37:08 +02:00
|
|
|
load_default_skin:
|
2006-03-04 13:58:59 +01:00
|
|
|
mov [_skinh],22
|
2007-05-25 11:37:08 +02:00
|
|
|
mov ebx,_skin_file_default
|
|
|
|
call read_skin_file
|
2006-02-18 11:41:47 +01:00
|
|
|
ret
|
|
|
|
|
|
|
|
parse_skin_data:
|
|
|
|
mov ebp,skin_data
|
|
|
|
cmp [ebp+SKIN_HEADER.ident],'SKIN'
|
|
|
|
jne .exit
|
|
|
|
|
2006-03-04 18:44:44 +01:00
|
|
|
mov edi,skin_udata
|
|
|
|
mov ecx,(skin_udata.end-skin_udata)/4
|
|
|
|
xor eax,eax
|
|
|
|
cld
|
|
|
|
rep stosd
|
|
|
|
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[ebp+SKIN_HEADER.params]
|
|
|
|
add ebx,skin_data
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.skin_height]
|
|
|
|
mov [_skinh],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors.inner]
|
|
|
|
mov [skin_active.colors.inner],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors.outer]
|
|
|
|
mov [skin_active.colors.outer],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors.frame]
|
|
|
|
mov [skin_active.colors.frame],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors_1.inner]
|
|
|
|
mov [skin_inactive.colors.inner],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors_1.outer]
|
|
|
|
mov [skin_inactive.colors.outer],eax
|
|
|
|
mov eax,[ebx+SKIN_PARAMS.colors_1.frame]
|
|
|
|
mov [skin_inactive.colors.frame],eax
|
|
|
|
lea esi,[ebx+SKIN_PARAMS.dtp.data]
|
|
|
|
mov edi,common_colours
|
|
|
|
mov ecx,[ebx+SKIN_PARAMS.dtp.size]
|
|
|
|
and ecx,127
|
|
|
|
rep movsb
|
2006-03-04 12:58:09 +01:00
|
|
|
mov eax,dword[ebx+SKIN_PARAMS.margin.right]
|
2006-02-18 11:41:47 +01:00
|
|
|
mov dword[_skinmargins+0],eax
|
2006-03-04 12:58:09 +01:00
|
|
|
mov eax,dword[ebx+SKIN_PARAMS.margin.bottom]
|
2006-02-18 11:41:47 +01:00
|
|
|
mov dword[_skinmargins+4],eax
|
|
|
|
|
|
|
|
mov ebx,[ebp+SKIN_HEADER.bitmaps]
|
|
|
|
add ebx,skin_data
|
|
|
|
.lp1: cmp dword[ebx],0
|
|
|
|
je .end_bitmaps
|
|
|
|
movzx eax,[ebx+SKIN_BITMAPS.kind]
|
|
|
|
movzx ecx,[ebx+SKIN_BITMAPS.type]
|
|
|
|
dec eax
|
|
|
|
jnz .not_left
|
|
|
|
xor eax,eax
|
|
|
|
mov edx,skin_active.left.data
|
|
|
|
or ecx,ecx
|
|
|
|
jnz @f
|
|
|
|
mov edx,skin_inactive.left.data
|
|
|
|
@@: jmp .next_bitmap
|
|
|
|
.not_left:
|
|
|
|
dec eax
|
|
|
|
jnz .not_oper
|
|
|
|
mov esi,[ebx+SKIN_BITMAPS.data]
|
|
|
|
add esi,skin_data
|
|
|
|
mov eax,[esi+0]
|
|
|
|
neg eax
|
|
|
|
mov edx,skin_active.oper.data
|
|
|
|
or ecx,ecx
|
|
|
|
jnz @f
|
|
|
|
mov edx,skin_inactive.oper.data
|
|
|
|
@@: jmp .next_bitmap
|
|
|
|
.not_oper:
|
|
|
|
dec eax
|
|
|
|
jnz .not_base
|
|
|
|
mov eax,[skin_active.left.width]
|
|
|
|
mov edx,skin_active.base.data
|
|
|
|
or ecx,ecx
|
|
|
|
jnz @f
|
|
|
|
mov eax,[skin_inactive.left.width]
|
|
|
|
mov edx,skin_inactive.base.data
|
|
|
|
@@: jmp .next_bitmap
|
|
|
|
.not_base:
|
|
|
|
add ebx,8
|
|
|
|
jmp .lp1
|
|
|
|
.next_bitmap:
|
|
|
|
mov ecx,[ebx+SKIN_BITMAPS.data]
|
|
|
|
add ecx,skin_data
|
|
|
|
mov [edx+4],eax
|
|
|
|
mov eax,[ecx+0]
|
|
|
|
mov [edx+8],eax
|
|
|
|
add ecx,8
|
|
|
|
mov [edx+0],ecx
|
|
|
|
add ebx,8
|
|
|
|
jmp .lp1
|
|
|
|
.end_bitmaps:
|
|
|
|
|
|
|
|
mov ebx,[ebp+SKIN_HEADER.buttons]
|
|
|
|
add ebx,skin_data
|
|
|
|
.lp2: cmp dword[ebx],0
|
|
|
|
je .end_buttons
|
|
|
|
mov eax,[ebx+SKIN_BUTTONS.type]
|
|
|
|
dec eax
|
|
|
|
jnz .not_close
|
|
|
|
mov edx,skin_btn_close
|
|
|
|
jmp .next_button
|
|
|
|
.not_close:
|
|
|
|
dec eax
|
|
|
|
jnz .not_minimize
|
|
|
|
mov edx,skin_btn_minimize
|
|
|
|
jmp .next_button
|
|
|
|
.not_minimize:
|
|
|
|
add ebx,12
|
|
|
|
jmp .lp2
|
|
|
|
.next_button:
|
|
|
|
movsx eax,[ebx+SKIN_BUTTONS.left]
|
|
|
|
mov [edx+SKIN_BUTTON.left],eax
|
|
|
|
movsx eax,[ebx+SKIN_BUTTONS.top]
|
|
|
|
mov [edx+SKIN_BUTTON.top],eax
|
|
|
|
movsx eax,[ebx+SKIN_BUTTONS.width]
|
|
|
|
mov [edx+SKIN_BUTTON.width],eax
|
|
|
|
movsx eax,[ebx+SKIN_BUTTONS.height]
|
|
|
|
mov [edx+SKIN_BUTTON.height],eax
|
|
|
|
add ebx,12
|
|
|
|
jmp .lp2
|
|
|
|
.end_buttons:
|
|
|
|
|
|
|
|
.exit:
|
|
|
|
ret
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2006-03-04 13:58:59 +01:00
|
|
|
sys_putimage_with_check:
|
|
|
|
or ebx,ebx
|
|
|
|
jz @f
|
2006-08-03 21:30:32 +02:00
|
|
|
call sys_putimage.forced
|
2006-03-04 13:58:59 +01:00
|
|
|
@@: ret
|
|
|
|
|
2006-08-03 21:30:32 +02:00
|
|
|
drawwindow_IV_caption:
|
|
|
|
|
|
|
|
mov ebp,skin_active
|
|
|
|
or al,al
|
|
|
|
jnz @f
|
|
|
|
mov ebp,skin_inactive
|
|
|
|
@@:
|
|
|
|
|
|
|
|
mov esi,[esp+4]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov eax,[esi+WDATA.box.width] ; window width
|
2006-08-03 21:30:32 +02:00
|
|
|
mov edx,[ebp+SKIN_DATA.left.left]
|
|
|
|
shl edx,16
|
|
|
|
mov ecx,[ebp+SKIN_DATA.left.width]
|
|
|
|
shl ecx,16
|
|
|
|
add ecx,[_skinh]
|
|
|
|
|
|
|
|
mov ebx, [ebp+SKIN_DATA.left.data]
|
|
|
|
call sys_putimage_with_check
|
|
|
|
|
|
|
|
mov esi,[esp+4]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov eax,[esi+WDATA.box.width]
|
2006-08-03 21:30:32 +02:00
|
|
|
sub eax,[ebp+SKIN_DATA.left.width]
|
|
|
|
sub eax,[ebp+SKIN_DATA.oper.width]
|
|
|
|
cmp eax,[ebp+SKIN_DATA.base.left]
|
|
|
|
jng .non_base
|
|
|
|
xor edx,edx
|
|
|
|
mov ecx,[ebp+SKIN_DATA.base.width]
|
|
|
|
jecxz .non_base
|
|
|
|
div ecx
|
|
|
|
|
|
|
|
inc eax
|
|
|
|
|
|
|
|
mov ebx,[ebp+SKIN_DATA.base.data]
|
|
|
|
mov ecx,[ebp+SKIN_DATA.base.width]
|
|
|
|
shl ecx,16
|
|
|
|
add ecx,[_skinh]
|
|
|
|
mov edx,[ebp+SKIN_DATA.base.left]
|
|
|
|
sub edx,[ebp+SKIN_DATA.base.width]
|
|
|
|
shl edx,16
|
|
|
|
.baseskinloop:
|
|
|
|
shr edx,16
|
|
|
|
add edx,[ebp+SKIN_DATA.base.width]
|
|
|
|
shl edx,16
|
|
|
|
|
|
|
|
push eax ebx ecx edx
|
|
|
|
call sys_putimage_with_check
|
|
|
|
pop edx ecx ebx eax
|
|
|
|
|
|
|
|
dec eax
|
|
|
|
jnz .baseskinloop
|
|
|
|
.non_base:
|
|
|
|
|
|
|
|
mov esi,[esp+4]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov edx,[esi+WDATA.box.width]
|
2006-08-03 21:30:32 +02:00
|
|
|
sub edx,[ebp+SKIN_DATA.oper.width]
|
|
|
|
inc edx
|
|
|
|
shl edx,16
|
|
|
|
mov ebx,[ebp+SKIN_DATA.oper.data]
|
|
|
|
|
|
|
|
mov ecx,[ebp+SKIN_DATA.oper.width]
|
|
|
|
shl ecx,16
|
|
|
|
add ecx,[_skinh]
|
|
|
|
call sys_putimage_with_check
|
|
|
|
|
|
|
|
ret
|
|
|
|
|
|
|
|
;//mike.dld, 2006-08-02 ]
|
|
|
|
|
|
|
|
|
2005-10-06 19:56:22 +02:00
|
|
|
drawwindow_IV:
|
2006-01-11 11:18:52 +01:00
|
|
|
;param1 - aw_yes
|
2005-10-06 19:56:22 +02:00
|
|
|
|
|
|
|
pusha
|
|
|
|
|
|
|
|
push edx
|
|
|
|
|
2006-10-18 13:29:50 +02:00
|
|
|
mov edi,edx
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebp,skin_active
|
|
|
|
cmp byte [esp+32+4+4],0
|
|
|
|
jne @f
|
|
|
|
mov ebp,skin_inactive
|
|
|
|
@@:
|
|
|
|
|
2006-08-06 12:29:45 +02:00
|
|
|
mov eax,[edi+WDATA.box.left]
|
2005-10-06 19:56:22 +02:00
|
|
|
shl eax,16
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ax,word [edi+WDATA.box.left]
|
|
|
|
add ax,word [edi+WDATA.box.width]
|
|
|
|
mov ebx,[edi+WDATA.box.top]
|
2005-10-06 19:56:22 +02:00
|
|
|
shl ebx,16
|
2006-08-06 12:29:45 +02:00
|
|
|
mov bx,word [edi+WDATA.box.top]
|
|
|
|
add bx,word [edi+WDATA.box.height]
|
2005-10-06 19:56:22 +02:00
|
|
|
; mov esi,[edi+24]
|
|
|
|
; shr esi,1
|
|
|
|
; and esi,0x007f7f7f
|
2006-02-18 11:41:47 +01:00
|
|
|
mov esi,[ebp+SKIN_DATA.colors.outer]
|
2005-10-06 19:56:22 +02:00
|
|
|
call draw_rectangle
|
|
|
|
mov ecx,3
|
|
|
|
_dw3l:
|
|
|
|
add eax,1*65536-1
|
|
|
|
add ebx,1*65536-1
|
|
|
|
test ax,ax
|
|
|
|
js no_skin_add_button
|
|
|
|
test bx,bx
|
|
|
|
js no_skin_add_button
|
2006-02-18 11:41:47 +01:00
|
|
|
mov esi,[ebp+SKIN_DATA.colors.frame] ;[edi+24]
|
2005-10-06 19:56:22 +02:00
|
|
|
call draw_rectangle
|
|
|
|
dec ecx
|
|
|
|
jnz _dw3l
|
2006-02-18 11:41:47 +01:00
|
|
|
mov esi,[ebp+SKIN_DATA.colors.inner]
|
2005-10-06 19:56:22 +02:00
|
|
|
add eax,1*65536-1
|
|
|
|
add ebx,1*65536-1
|
|
|
|
test ax,ax
|
|
|
|
js no_skin_add_button
|
|
|
|
test bx,bx
|
|
|
|
js no_skin_add_button
|
|
|
|
call draw_rectangle
|
|
|
|
|
2006-03-04 18:44:44 +01:00
|
|
|
cmp dword[skin_data],'SKIN'
|
|
|
|
je @f
|
|
|
|
xor eax,eax
|
|
|
|
xor ebx,ebx
|
|
|
|
mov esi,[esp]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ecx,[esi+WDATA.box.width]
|
2006-03-04 18:44:44 +01:00
|
|
|
inc ecx
|
|
|
|
mov edx,[_skinh]
|
|
|
|
mov edi,[common_colours+4] ; standard grab color
|
|
|
|
call [drawbar]
|
|
|
|
jmp draw_clientbar
|
|
|
|
@@:
|
|
|
|
|
2006-08-03 21:30:32 +02:00
|
|
|
mov al,[esp+32+4+4]
|
|
|
|
call drawwindow_IV_caption
|
2005-10-06 19:56:22 +02:00
|
|
|
|
2006-03-04 18:44:44 +01:00
|
|
|
draw_clientbar:
|
|
|
|
|
2005-10-06 19:56:22 +02:00
|
|
|
mov esi,[esp]
|
|
|
|
|
2006-08-06 12:29:45 +02:00
|
|
|
mov edx,[esi+WDATA.box.top] ; WORK AREA
|
2005-10-06 19:56:22 +02:00
|
|
|
add edx,21+5
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ebx,[esi+WDATA.box.top]
|
|
|
|
add ebx,[esi+WDATA.box.height]
|
2005-10-06 19:56:22 +02:00
|
|
|
cmp edx,ebx
|
|
|
|
jg _noinside2
|
|
|
|
mov eax,5
|
|
|
|
mov ebx,[_skinh]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ecx,[esi+WDATA.box.width]
|
|
|
|
mov edx,[esi+WDATA.box.height]
|
2005-10-06 19:56:22 +02:00
|
|
|
sub ecx,4
|
|
|
|
sub edx,4
|
2006-08-06 12:29:45 +02:00
|
|
|
mov edi,[esi+WDATA.cl_workarea]
|
2007-01-30 22:54:34 +01:00
|
|
|
test edi,0x40000000
|
|
|
|
jnz _noinside2
|
2005-10-06 19:56:22 +02:00
|
|
|
call [drawbar]
|
|
|
|
_noinside2:
|
|
|
|
|
2006-03-04 18:44:44 +01:00
|
|
|
cmp dword[skin_data],'SKIN'
|
|
|
|
jne no_skin_add_button
|
|
|
|
|
2006-02-18 11:41:47 +01:00
|
|
|
;* close button
|
2007-03-01 21:32:19 +01:00
|
|
|
mov edi,[BTN_ADDR]
|
2005-10-06 19:56:22 +02:00
|
|
|
movzx eax,word [edi]
|
|
|
|
cmp eax,1000
|
|
|
|
jge no_skin_add_button
|
|
|
|
inc eax
|
|
|
|
mov [edi],ax
|
|
|
|
|
|
|
|
shl eax,4
|
|
|
|
add eax,edi
|
|
|
|
|
2007-02-28 09:52:06 +01:00
|
|
|
mov bx,[CURRENT_TASK]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
|
|
|
|
add eax,2 ; save button id number
|
|
|
|
mov bx,1
|
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; x start
|
2006-02-18 11:41:47 +01:00
|
|
|
xor ebx,ebx
|
|
|
|
cmp [skin_btn_close.left],0
|
|
|
|
jge _bCx_at_right
|
2005-10-06 19:56:22 +02:00
|
|
|
mov ebx,[esp]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ebx,[ebx+WDATA.box.width]
|
2006-02-18 11:41:47 +01:00
|
|
|
inc ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
_bCx_at_right:
|
2006-02-18 11:41:47 +01:00
|
|
|
add ebx,[skin_btn_close.left]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; x size
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_close.width]
|
|
|
|
dec ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; y start
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_close.top]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; y size
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_close.height]
|
|
|
|
dec ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
|
|
|
|
;* minimize button
|
2007-03-01 21:32:19 +01:00
|
|
|
mov edi,[BTN_ADDR]
|
2005-10-06 19:56:22 +02:00
|
|
|
movzx eax,word [edi]
|
|
|
|
cmp eax,1000
|
|
|
|
jge no_skin_add_button
|
|
|
|
inc eax
|
|
|
|
mov [edi],ax
|
|
|
|
|
|
|
|
shl eax,4
|
|
|
|
add eax,edi
|
|
|
|
|
2007-02-28 09:52:06 +01:00
|
|
|
mov bx,[CURRENT_TASK]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
|
|
|
|
add eax,2 ; save button id number
|
|
|
|
mov bx,65535 ;999
|
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; x start
|
2006-02-18 11:41:47 +01:00
|
|
|
xor ebx,ebx
|
|
|
|
cmp [skin_btn_minimize.left],0
|
|
|
|
jge _bMx_at_right
|
2005-10-06 19:56:22 +02:00
|
|
|
mov ebx,[esp]
|
2006-08-06 12:29:45 +02:00
|
|
|
mov ebx,[ebx+WDATA.box.width]
|
2006-02-18 11:41:47 +01:00
|
|
|
inc ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
_bMx_at_right:
|
2006-02-18 11:41:47 +01:00
|
|
|
add ebx,[skin_btn_minimize.left]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; x size
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_minimize.width]
|
|
|
|
dec ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; y start
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_minimize.top]
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
add eax,2 ; y size
|
2006-02-18 11:41:47 +01:00
|
|
|
mov ebx,[skin_btn_minimize.height]
|
|
|
|
dec ebx
|
2005-10-06 19:56:22 +02:00
|
|
|
mov [eax],bx
|
|
|
|
|
|
|
|
no_skin_add_button:
|
2006-10-18 13:29:50 +02:00
|
|
|
pop edi
|
2005-10-06 19:56:22 +02:00
|
|
|
popa
|
2006-01-06 12:46:26 +01:00
|
|
|
|
2006-01-11 11:18:52 +01:00
|
|
|
ret 4
|
2005-10-06 19:56:22 +02:00
|
|
|
|