From 64fb1eba94e2318416f9427881ace59b4128a81a Mon Sep 17 00:00:00 2001 From: "Marat Zakiyanov (Mario79)" Date: Mon, 13 Jun 2011 17:24:37 +0000 Subject: [PATCH] Correcting the "Rotate" module to new invoke. git-svn-id: svn://kolibrios.org@1957 a494cfbc-eb01-0410-851d-a64ba20cac60 --- programs/media/zsea/plugins/rotate/rotate.asm | 4 +++- programs/media/zsea/zoom.inc | 7 ++++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/programs/media/zsea/plugins/rotate/rotate.asm b/programs/media/zsea/plugins/rotate/rotate.asm index 343d98f531..7bdc6b75dd 100644 --- a/programs/media/zsea/plugins/rotate/rotate.asm +++ b/programs/media/zsea/plugins/rotate/rotate.asm @@ -38,6 +38,8 @@ include '../../../../macros.inc' ;--------------------------------------------------------------------- START: pushad + mov ebx,dword [esp+40] + mov eax,dword [esp+36] mov [pointer],eax ; ebx - direction ; 1 - clockwise, 2 - counter clockwise @@ -132,7 +134,7 @@ START: call .XY_data_exchange .exit: popad - ret + ret 8 ;--------------------------------------------------------------------- .XY_data_exchange: mov ecx,[image_file] diff --git a/programs/media/zsea/zoom.inc b/programs/media/zsea/zoom.inc index b2a16da5d1..8a129e973c 100644 --- a/programs/media/zsea/zoom.inc +++ b/programs/media/zsea/zoom.inc @@ -32,7 +32,12 @@ rotate_counter_clockwise: mov [horizontal_position_coorect],eax mov [vertical_position_coorect],ebx pop ebx - mov eax,image_file +; mov eax,image_file +; ebx - direction +; 1 - clockwise, 2 - counter clockwise +; 3 - Left&Right, 4 - Up&Down + push ebx + push dword image_file ; call [plugin_rotate] call [rotate_Start] mov ebx,[raw_pointer]