From 2c8f98672030c255f9e06860cfc0ef9d405361ed Mon Sep 17 00:00:00 2001 From: CleverMouse Date: Fri, 29 Aug 2014 11:25:11 +0000 Subject: [PATCH] mgb: use static buffer for blitter picture git-svn-id: svn://kolibrios.org@5064 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/system/mgb/trunk/mgb.asm | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/programs/system/mgb/trunk/mgb.asm b/programs/system/mgb/trunk/mgb.asm index ef77518493..62a39d4bfb 100644 --- a/programs/system/mgb/trunk/mgb.asm +++ b/programs/system/mgb/trunk/mgb.asm @@ -270,7 +270,6 @@ align 4 jnz .next_test xor dword [wFlags],1 mcall 68,13,[area_for_f36] - mcall 68,13,[params_f73.pointer] mcall -1 ;--------------------------------------------------------------------- draw_window: @@ -338,9 +337,8 @@ testDrawPicture: ret ;--------------------------------------------------------------------- prepare_f73: - mcall 68,12,90*123*4 - mov [params_f73.pointer], eax - shr ecx, 2 + mov ecx, 90*123 + mov eax, params_f73.data mov ebx, [area_for_f36] @@: mov edx, [ebx] @@ -882,7 +880,7 @@ params_f73: .width_src dd 90 ; +24 .height_src dd 123 ; +28 ; other -.pointer dd 0 ; 90*4 ; +32 +.pointer dd .data; 90*4 ; +32 .row_size dd 90*4 ; +36 ;--------------------------------------------------------------------- align 4 @@ -1038,6 +1036,6 @@ thread_stack1: ;--------------------------------------------------------------------- align 4 rb 4096 - rb 0x2884 ; for F73 image size 123*90*4 stacktop: +params_f73.data rb 123*90*4 I_END: