forked from KolibriOS/kolibrios
Correcting the "Rotate" module to new invoke.
git-svn-id: svn://kolibrios.org@1957 a494cfbc-eb01-0410-851d-a64ba20cac60
This commit is contained in:
parent
eafcca76fb
commit
64fb1eba94
@ -38,6 +38,8 @@ include '../../../../macros.inc'
|
|||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
START:
|
START:
|
||||||
pushad
|
pushad
|
||||||
|
mov ebx,dword [esp+40]
|
||||||
|
mov eax,dword [esp+36]
|
||||||
mov [pointer],eax
|
mov [pointer],eax
|
||||||
; ebx - direction
|
; ebx - direction
|
||||||
; 1 - clockwise, 2 - counter clockwise
|
; 1 - clockwise, 2 - counter clockwise
|
||||||
@ -132,7 +134,7 @@ START:
|
|||||||
call .XY_data_exchange
|
call .XY_data_exchange
|
||||||
.exit:
|
.exit:
|
||||||
popad
|
popad
|
||||||
ret
|
ret 8
|
||||||
;---------------------------------------------------------------------
|
;---------------------------------------------------------------------
|
||||||
.XY_data_exchange:
|
.XY_data_exchange:
|
||||||
mov ecx,[image_file]
|
mov ecx,[image_file]
|
||||||
|
@ -32,7 +32,12 @@ rotate_counter_clockwise:
|
|||||||
mov [horizontal_position_coorect],eax
|
mov [horizontal_position_coorect],eax
|
||||||
mov [vertical_position_coorect],ebx
|
mov [vertical_position_coorect],ebx
|
||||||
pop 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 [plugin_rotate]
|
||||||
call [rotate_Start]
|
call [rotate_Start]
|
||||||
mov ebx,[raw_pointer]
|
mov ebx,[raw_pointer]
|
||||||
|
Loading…
Reference in New Issue
Block a user