From 5121a68d46aa0eccd4f3cba888800a0bbf33492e Mon Sep 17 00:00:00 2001 From: "Evgeny Grechnikov (Diamond)" Date: Tue, 6 Feb 2007 14:00:27 +0000 Subject: [PATCH] * Corrected size of display_data in calculatebackground * Fixed bug with VRR changing videomode git-svn-id: svn://kolibrios.org@322 a494cfbc-eb01-0410-851d-a64ba20cac60 --- kernel/trunk/gui/window.inc | 2 +- kernel/trunk/kernel.asm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/trunk/gui/window.inc b/kernel/trunk/gui/window.inc index 32e4474f67..9699aa35b0 100644 --- a/kernel/trunk/gui/window.inc +++ b/kernel/trunk/gui/window.inc @@ -552,7 +552,7 @@ repos_windows: jle .lp3 mov [edi+WDATA.box.width],ebx .lp3: sub ebx,[edi+WDATA.box.width] - mov [esi+WDATA.box.left],ebx + mov [edi+WDATA.box.left],ebx .lp4: mov eax,[edi+WDATA.box.top] add eax,[edi+WDATA.box.height] mov ebx,[0x0000fe04] diff --git a/kernel/trunk/kernel.asm b/kernel/trunk/kernel.asm index 42f745ccee..33991282da 100644 --- a/kernel/trunk/kernel.asm +++ b/kernel/trunk/kernel.asm @@ -3468,7 +3468,7 @@ calculatebackground: ; background mov edi,display_data ; set os to use all pixels mov eax,0x01010101 - mov ecx,0x1fff00 / 4 + mov ecx,0x15ff00 / 4 rep stosd mov byte [0xFFF0], 0 ; do not draw background!