From 145124ff4e835b01138c4821281a8476dee354ea Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Sun, 11 Mar 2012 20:36:29 +0000 Subject: [PATCH] VESA draw the small speedup git-svn-id: svn://kolibrios.org@2451 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/data32.inc | 1 + kernel/trunk/video/blitter.inc | 8 ++++---- kernel/trunk/video/vesa20.inc | 16 ++++++++-------- kernel/trunk/video/vga.inc | 4 ++-- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/kernel/trunk/data32.inc b/kernel/trunk/data32.inc index a4ffafdcad..bcb31492c8 100644 --- a/kernel/trunk/data32.inc +++ b/kernel/trunk/data32.inc @@ -166,6 +166,7 @@ dll_cur_addr dd MIN_DEFAULT_DLL_ADDR ; mike.dld { db 0 dd servetable-0x10000 +align 4 draw_line dd __sys_draw_line draw_pointer dd __sys_draw_pointer ;//mike.dld, 2006-08-02 [ diff --git a/kernel/trunk/video/blitter.inc b/kernel/trunk/video/blitter.inc index a2111a65d6..0b4774f352 100644 --- a/kernel/trunk/video/blitter.inc +++ b/kernel/trunk/video/blitter.inc @@ -381,9 +381,9 @@ align 4 mov eax, [esi+ecx*4] ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4 @@ -451,9 +451,9 @@ align 4 lea edi, [edi+ecx*2] ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder_1 ;-------------------------------------- align 4 diff --git a/kernel/trunk/video/vesa20.inc b/kernel/trunk/video/vesa20.inc index 0c231c5b08..548a5cc029 100644 --- a/kernel/trunk/video/vesa20.inc +++ b/kernel/trunk/video/vesa20.inc @@ -54,9 +54,9 @@ Vesa20_getpixel24: ; ebx = y ;-------------------------------------- ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4 @@ -87,9 +87,9 @@ align 4 Vesa20_getpixel32: ;-------------------------------------- ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4 @@ -1565,9 +1565,9 @@ dp3: mov eax, [esi] ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4 @@ -1766,9 +1766,9 @@ align 4 .novert: push ecx ; check for hardware cursor - cmp [_display.select_cursor], 0 - jne @f cmp [_display.select_cursor], select_cursor + jne @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4 diff --git a/kernel/trunk/video/vga.inc b/kernel/trunk/video/vga.inc index e3c343ea55..10e1fdd8f5 100644 --- a/kernel/trunk/video/vga.inc +++ b/kernel/trunk/video/vga.inc @@ -381,9 +381,9 @@ VGA_putpixel: mov eax, [esp+32-8+4] ; color ;-------------------------------------- ; check for hardware cursor - cmp [_display.select_cursor], 0 - je @f cmp [_display.select_cursor], select_cursor + je @f + cmp [_display.select_cursor], 0 jne .no_mouseunder ;-------------------------------------- align 4