From f0f056cefebb6cef4d54a27de6faad2bae3553ed Mon Sep 17 00:00:00 2001 From: IgorA Date: Tue, 5 Jan 2010 18:46:12 +0000 Subject: [PATCH] fasm: added to recalculate the width of the editbox when resizing the window git-svn-id: svn://kolibrios.org@1363 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/develop/fasm/trunk/WHATSNEW.TXT | 30 ++++++++++++++++++++++++ programs/develop/fasm/trunk/fasm.asm | 16 ++++++++++--- 2 files changed, 43 insertions(+), 3 deletions(-) diff --git a/programs/develop/fasm/trunk/WHATSNEW.TXT b/programs/develop/fasm/trunk/WHATSNEW.TXT index c6b9af0983..1c0a1aa604 100644 --- a/programs/develop/fasm/trunk/WHATSNEW.TXT +++ b/programs/develop/fasm/trunk/WHATSNEW.TXT @@ -2,6 +2,36 @@ Visit http://flatassembler.net/ for more information. +version 1.69.11 (Dec 19, 2009) + +[+] Allowed syntax of "pmovmskb" with 64-bit register destination in long mode. + +[-] The code generated for "call eax" instruction was missing prefix in 16-bit + mode - fixed. + + +version 1.69.10 (Oct 28, 2009) + +[-] Fixed long mode opcode generator to allow absolute addresses to be + generated with "qword" keyword inside square brackets. + + +version 1.69.09 (Oct 20, 2009) + +[-] Fixed a crash during the symbolic information generation when a "static" + symbol was encountered. + + +version 1.69.08 (Oct 04, 2009) + +[-] Minor bugfixes. + + +version 1.69.07 (Oct 03, 2009) + +[-] Corrected encoding of "extrq" intruction for some cases. + + version 1.69.06 (Sep 29, 2009) [-] The prefix 67h for "jecxz" and "loopd" instructions in 64-bit mode wasn't diff --git a/programs/develop/fasm/trunk/fasm.asm b/programs/develop/fasm/trunk/fasm.asm index 2277bbac9c..0247eb5929 100644 --- a/programs/develop/fasm/trunk/fasm.asm +++ b/programs/develop/fasm/trunk/fasm.asm @@ -265,6 +265,16 @@ mov edx,0x4000000B call draw_checkbox call draw_messages + mov eax,dword[pinfo.box.width] + cmp eax,250 + jge @f + mov eax,250 + @@: + sub eax,127 + mov dword[edit1.width],eax + mov dword[edit2.width],eax + mov dword[edit3.width],eax + push dword edit1 call [edit_box_draw] push dword edit2 @@ -399,9 +409,9 @@ myimport: ;aCheck_box_mouse db 'check_box_mouse',0 ;aVersion_ch db 'version_ch',0 -edit1 edit_box 153, 56, 1, 0xe0ffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, infile, mouse_dd, 0, 11,11 -edit2 edit_box 153, 56, 17, 0xe0ffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, outfile, mouse_dd, 0, 7,7 -edit3 edit_box 153, 56, 33, 0xe0ffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, path, mouse_dd, 0, 6,6 +edit1 edit_box 153, 56, 1, 0xffffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, infile, mouse_dd, 0, 11,11 +edit2 edit_box 153, 56, 17, 0xffffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, outfile, mouse_dd, 0, 7,7 +edit3 edit_box 153, 56, 33, 0xffffff, 0xff, 0x80ff, 0, 0xa000, MAX_PATH+$, path, mouse_dd, 0, 6,6 mouse_dd dd 0 ;нужно для Shift-а в editbox