From d3d3fc15c6577a439ce31b1a181a4d3d9338a6a5 Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Wed, 12 Apr 2006 13:15:06 +0000 Subject: [PATCH] Now system doesn't draw background before its definition git-svn-id: svn://kolibrios.org@67 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/kernel.asm | 38 ++++++++++++++++++++++---------------- 1 file changed, 22 insertions(+), 16 deletions(-) diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index f851cd58a4..b9328dfd99 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -2381,6 +2381,7 @@ draw_background_temp: ;draw_background_temp: ; mov [bgrchanged],1 ;0 mov [0xfff0],byte 1 + mov [background_defined], 1 nosb31: ret nosb3: @@ -3016,22 +3017,22 @@ sys_window_move: ret -type_background_1: - cmp [0xfff0],byte 0 ; background update ? - jz temp_nobackgr - mov [0xfff0],byte 2 - call change_task - mov [draw_data+32+0],dword 0 - mov [draw_data+32+4],dword 0 - mov eax,[0xfe00] - mov ebx,[0xfe04] - mov [draw_data+32+8],eax - mov [draw_data+32+12],ebx - call drawbackground - mov [0xfff0],byte 0 - mov [0xfff4],byte 0 -temp_nobackgr: - ret +;type_background_1: +; cmp [0xfff0],byte 0 ; background update ? +; jz temp_nobackgr +; mov [0xfff0],byte 2 +; call change_task +; mov [draw_data+32+0],dword 0 +; mov [draw_data+32+4],dword 0 +; mov eax,[0xfe00] +; mov ebx,[0xfe04] +; mov [draw_data+32+8],eax +; mov [draw_data+32+12],ebx +; call drawbackground +; mov [0xfff0],byte 0 +; mov [0xfff4],byte 0 +;temp_nobackgr: +; ret uglobal window_move_pr dd 0x0 @@ -3170,6 +3171,9 @@ iglobal cpustring db 'CPU ' endg +uglobal +background_defined db 0 ; diamond, 11.04.2006 +endg align 4 ; check misc @@ -3198,6 +3202,8 @@ checkmisc: cmp [0xfff0],byte 0 ; background update ? jz nobackgr + cmp [background_defined], 0 + jz nobackgr mov [0xfff0],byte 2 call change_task mov [draw_data+32+0],dword 0