From 43e5c3605e8c88fe074595f2bd7e4cb00592500f Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Mon, 25 Aug 2014 10:45:40 +0000 Subject: [PATCH] mgb: program code at zero address as picture for blitter is not very impressive, make better one git-svn-id: svn://kolibrios.org@5058 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/mgb/trunk/mgb.asm | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/programs/system/mgb/trunk/mgb.asm b/programs/system/mgb/trunk/mgb.asm index e5405a65ef..ef77518493 100644 --- a/programs/system/mgb/trunk/mgb.asm +++ b/programs/system/mgb/trunk/mgb.asm @@ -262,10 +262,15 @@ align 4 mov [esi-8],edi add esi,TEST_REC_SIZE + cmp dword [esi], testDrawPicture_f73 + jnz @f + call prepare_f73 +@@: cmp dword [esi],0 jnz .next_test xor dword [wFlags],1 mcall 68,13,[area_for_f36] + mcall 68,13,[params_f73.pointer] mcall -1 ;--------------------------------------------------------------------- draw_window: @@ -332,6 +337,20 @@ testDrawPicture: mcall 7,[area_for_f36],<90,123>,<15,33> ret ;--------------------------------------------------------------------- +prepare_f73: + mcall 68,12,90*123*4 + mov [params_f73.pointer], eax + shr ecx, 2 + mov ebx, [area_for_f36] +@@: + mov edx, [ebx] + and edx, 0xFFFFFF + mov [eax], edx + add ebx, 3 + add eax, 4 + dec ecx + jnz @b + ret align 4 testDrawPicture_f73: xor ebx,ebx