2006-12-29 15:50:24 +01:00
|
|
|
;------------------------------------------
|
|
|
|
;-------------KEYS-------------------------
|
|
|
|
;------------------------------------------
|
2016-03-19 10:57:37 +01:00
|
|
|
align 4
|
|
|
|
keys:
|
2006-12-29 15:50:24 +01:00
|
|
|
|
2016-03-19 10:57:37 +01:00
|
|
|
mcall SF_GET_KEY
|
2006-12-29 15:50:24 +01:00
|
|
|
shr eax,8
|
|
|
|
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,176
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key2
|
|
|
|
sub [PosX],20
|
|
|
|
jmp change_screen
|
|
|
|
key2:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,179
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key3
|
|
|
|
add [PosX],20
|
|
|
|
jmp change_screen
|
|
|
|
key3:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,177
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key4
|
|
|
|
add [PosY],20
|
|
|
|
jmp change_screen
|
|
|
|
key4:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,178
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key5
|
|
|
|
sub [PosY],20
|
|
|
|
jmp change_screen
|
|
|
|
key5:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,49 ;1
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key6
|
|
|
|
mov [k],1
|
2016-03-19 10:57:37 +01:00
|
|
|
call scrollbar_move_00
|
2006-12-29 15:50:24 +01:00
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key6:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,50 ;2
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key7
|
|
|
|
mov [k],2
|
2016-03-19 10:57:37 +01:00
|
|
|
call scrollbar_move_00
|
2006-12-29 15:50:24 +01:00
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key7:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,52 ;4
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key8
|
|
|
|
mov [k],4
|
2016-03-19 10:57:37 +01:00
|
|
|
call scrollbar_move_00
|
2006-12-29 15:50:24 +01:00
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key8:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,56 ;8
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key9
|
|
|
|
mov [k],8
|
2016-03-19 10:57:37 +01:00
|
|
|
call scrollbar_move_00
|
2006-12-29 15:50:24 +01:00
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key9:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,48 ;0
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key10
|
|
|
|
mov [k],16
|
2016-03-19 10:57:37 +01:00
|
|
|
call scrollbar_move_00
|
2006-12-29 15:50:24 +01:00
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key10:
|
2016-03-19 10:57:37 +01:00
|
|
|
cmp al,255
|
2006-12-29 15:50:24 +01:00
|
|
|
jne key11
|
|
|
|
call analizing_picture_to_palette
|
|
|
|
call drawwin
|
|
|
|
jmp change_screen
|
|
|
|
key11:
|
2016-03-19 10:57:37 +01:00
|
|
|
;cmp al,27 ;Esc
|
|
|
|
;jne still
|
|
|
|
jmp still
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
mov eax,CursorsID
|
|
|
|
call delete_cursors
|
2010-09-30 15:20:36 +02:00
|
|
|
close:
|
2016-03-19 10:57:37 +01:00
|
|
|
mcall SF_TERMINATE_PROCESS
|
2006-12-29 15:50:24 +01:00
|
|
|
|
|
|
|
jmp still
|
|
|
|
|
|
|
|
change_screen:
|
|
|
|
|
|
|
|
call CalculatePositionScreen
|
|
|
|
call MovePictureToWorkScreen
|
|
|
|
call draw_scrollers
|
|
|
|
call PrintMousePos
|
|
|
|
|
|
|
|
jmp still
|