From a26a97719e4bb0a850e0896f3e65f32d74e8fd26 Mon Sep 17 00:00:00 2001 From: Doczom Date: Sun, 9 Jan 2022 23:50:54 +0000 Subject: [PATCH] update vga.inc git-svn-id: svn://kolibrios.org@9606 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/video/vga.inc | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/kernel/trunk/video/vga.inc b/kernel/trunk/video/vga.inc index 3868c7f384..203919ddcc 100644 --- a/kernel/trunk/video/vga.inc +++ b/kernel/trunk/video/vga.inc @@ -1,6 +1,6 @@ ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; ;; ;; -;; Copyright (C) KolibriOS team 2004-2015. All rights reserved. ;; +;; Copyright (C) KolibriOS team 2004-2022. All rights reserved. ;; ;; Distributed under terms of the GNU General Public License ;; ;; ;; ;; VGA.INC ;; @@ -168,7 +168,7 @@ align 4 align 4 novesal: mov [novesachecksum], ecx - mov ecx, 0 + xor ecx, ecx ;mov ecx, 0 movzx eax, word [MOUSE_Y] cmp eax, 100 jge m13l3 @@ -495,9 +495,13 @@ VGA_draw_bar: align 4 VGA_draw_bar_1: mov [temp.cx], eax - mov eax, [TASK_BASE] - add ebx, [eax-twdw + 4] - mov eax, [eax-twdw + 0] + ;mov eax, [TASK_BASE] + ;add ebx, [eax-twdw + 4] + ;mov eax, [eax-twdw + 0] + mov eax, [current_slot_idx] + shl eax, 5 + add ebx, [eax+window_data+WDATA.box.top] + mov eax, [eax+window_data+WDATA.box.left] add eax, [temp.cx] and eax, 0xfff8 shl ebx, 9