bugfix in revision 986 + small optimization from Galkov

git-svn-id: svn://kolibrios.org@994 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
Evgeny Grechnikov (Diamond) 2009-01-02 08:59:23 +00:00
parent 5be6f93061
commit fa362db291

View File

@ -1,8 +1,9 @@
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; ;; ;; ;;
;; Copyright (C) KolibriOS team 2004-2008. All rights reserved. ;; ;; Copyright (C) KolibriOS team 2004-2009. All rights reserved. ;;
;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;; ;; Copyright (C) MenuetOS 2000-2004 Ville Mikael Turjanmaa ;;
;; Distributed under terms of the GNU General Public License ;; ;; Distributed under terms of the GNU General Public License ;;
;; ;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
$Revision$ $Revision$
@ -1207,16 +1208,15 @@ endg
;..................................... start 3/4 : modified by vhanla ................. ;..................................... start 3/4 : modified by vhanla .................
cmp [bPressedMouseXY_W],1 cmp [bPressedMouseXY_W],1
jb .first
ja @f ja @f
inc [bPressedMouseXY_W] inc [bPressedMouseXY_W]
jmp @f jnc @f
.first: ;mov ax,[MOUSE_X]
mov [bPressedMouseXY_W],1 ;mov [mx],ax
mov ax,[MOUSE_X] ;mov ax,[MOUSE_Y]
mov [mx],ax ;mov [my],ax
mov ax,[MOUSE_Y] mov eax,dword[MOUSE_X]
mov [my],ax mov dword[mx],eax
@@: @@:
;..................................... end 3/4 : modified by vhanla ................... ;..................................... end 3/4 : modified by vhanla ...................
@ -1259,12 +1259,13 @@ endg
jz .move_resize_window jz .move_resize_window
cmp [bPressedMouseXY_W], 1 cmp [bPressedMouseXY_W], 1
ja .exit ja .exit_popa
; eax = position in windowing stack ; eax = position in windowing stack
; redraw must ? ; redraw must ?
lea esi, [WIN_POS + esi * 2] lea esi, [WIN_POS + esi * 2]
call waredraw call waredraw
.exit_popa:
add esp, 32 add esp, 32
.exit: .exit: