From 881d6e59336c8560d74a26447de7d4d0ca0a6666 Mon Sep 17 00:00:00 2001 From: IgorA Date: Thu, 17 Jan 2013 13:38:55 +0000 Subject: [PATCH] kpack use check_box2 git-svn-id: svn://kolibrios.org@3177 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/other/kpack/trunk/const_var.inc | 8 +++++--- programs/other/kpack/trunk/kpack.asm | 5 ++++- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/programs/other/kpack/trunk/const_var.inc b/programs/other/kpack/trunk/const_var.inc index f51f9fd31c..83fdb02691 100644 --- a/programs/other/kpack/trunk/const_var.inc +++ b/programs/other/kpack/trunk/const_var.inc @@ -81,6 +81,7 @@ edit_box_key dd aEdit_box_key edit_box_mouse dd aEdit_box_mouse ;version_ed dd aVersion_ed +init_checkbox dd aInit_checkbox check_box_draw dd aCheck_box_draw check_box_mouse dd aCheck_box_mouse ;version_ch dd aVersion_ch @@ -107,8 +108,9 @@ aEdit_box_key db 'edit_box_key',0 aEdit_box_mouse db 'edit_box_mouse',0 ;aVersion_ed db 'version_ed',0 -aCheck_box_draw db 'check_box_draw',0 -aCheck_box_mouse db 'check_box_mouse',0 +aInit_checkbox db 'init_checkbox2',0 +aCheck_box_draw db 'check_box_draw2',0 +aCheck_box_mouse db 'check_box_mouse2',0 ;aVersion_ch db 'version_ch',0 ;aOption_box_draw db 'option_box_draw',0 @@ -202,7 +204,7 @@ editboxes_end: mouse_dd dd 0 ;--------------------------------------------------------------------- -check1 check_box 353,39,4,10,0x80FFFFFF,0,0,check_text,6 +check1 check_box2 (353 shl 16)+10, (39 shl 16)+10, 4, 0x80FFFFFF, 0, 0, check_text, ch_flag_bottom check1_end: check_text db 'Kernel',0 diff --git a/programs/other/kpack/trunk/kpack.asm b/programs/other/kpack/trunk/kpack.asm index 59d2b2614f..c8b7a68c87 100644 --- a/programs/other/kpack/trunk/kpack.asm +++ b/programs/other/kpack/trunk/kpack.asm @@ -61,6 +61,9 @@ load_libraries l_libs_start,load_lib_end cmp eax,-1 je exit + push check1 + call [init_checkbox] + call clear_messages ; set default path = /RD/1/ mov esi,defpath @@ -425,7 +428,7 @@ draw_window: mcall 48,3,color_table,40 ;-------------------------------------- edit_boxes_set_sys_color edit1,editboxes_end,color_table -check_boxes_set_sys_color check1,check1_end,color_table +check_boxes_set_sys_color2 check1,check1_end,color_table ;-------------------------------------- ; define window xor eax,eax