From 5f85d6b8f55de5f44f02f60e5ed94e5b92984669 Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Thu, 6 Jun 2013 10:50:52 +0000 Subject: [PATCH] fix r3536 git-svn-id: svn://kolibrios.org@3611 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index f24172c363..1aba424c06 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -3517,23 +3517,23 @@ set_bgr_event: cmp [edi+SLOT_BASE+APPDATA.draw_bgr_x], 0 jz .set .join: - cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax - jbe @f - mov word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax -@@: - shr eax, 16 cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax jae @f mov word [edi+SLOT_BASE+APPDATA.draw_bgr_x], ax @@: - cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx + shr eax, 16 + cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax jbe @f - mov word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx + mov word [edi+SLOT_BASE+APPDATA.draw_bgr_x+2], ax @@: - shr edx, 16 cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx jae @f mov word [edi+SLOT_BASE+APPDATA.draw_bgr_y], dx +@@: + shr edx, 16 + cmp word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx + jbe @f + mov word [edi+SLOT_BASE+APPDATA.draw_bgr_y+2], dx @@: jmp .common .set: