From 83176ac8efd9b13281338568e3d67d6ba5651a86 Mon Sep 17 00:00:00 2001 From: Ivan Baravy Date: Mon, 18 Oct 2021 16:23:18 +0000 Subject: [PATCH] kernel: Fix window redraw after 1px move. If - window A is above window B, and - window A has been moved, then window B receives a redraw event. But if that move was 1px right or down, window B didn't receive an event because of off-by-one error. Now it's fixed. git-svn-id: svn://kolibrios.org@9221 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index a15f085e68..0a90b6cd71 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -3956,12 +3956,12 @@ align 4 sub eax, ecx dec ecx - jnz .start_x + jns .start_x pop ecx dec ebx dec edx - jnz .start_y + jns .start_y ;-------------------------------------- align 4 .not_found: