Compare commits

...
Author SHA1 Message Date
IgorA efddb79976 resolve menu conflict
Test PR / Build (en_US) (pull_request) Successful in 1m58s
Test PR / Build (ru_RU) (pull_request) Successful in 3m34s
Test PR / Build (es_ES) (pull_request) Successful in 4m8s
removed unused functions from debug.inc during compilation
2026-10-05 15:29:18 +03:00
6 changed files with 61 additions and 38 deletions

No files matched your search

+7 -2
View File
@@ -31,6 +31,7 @@ macro debug_print_dec arg
dpd fix debug_print_dec
;---------------------------------
if used debug_outdec
debug_outdec: ;(eax - num, edi-str)
push 10 ;2
pop ecx ;1
@@ -59,7 +60,9 @@ debug_outchar: ; al - char
popad
popf
ret
end if
if used debug_outstr
debug_outstr:
mov eax,63
mov ebx,1
@@ -72,7 +75,7 @@ debug_outstr:
jmp @b
@@:
ret
end if
macro newline
{
@@ -112,6 +115,7 @@ macro debug_print_hex arg
}
dph fix debug_print_hex
if used debug_outhex
debug_outhex:
; eax - number
mov edx, 8
@@ -130,4 +134,5 @@ debug_outhex:
ret
__hexdigits:
db '0123456789ABCDEF'
db '0123456789ABCDEF'
end if
+12 -3
View File
@@ -104,8 +104,12 @@ START:
load_libraries l_libs_start,end_l_libs
cmp eax,-1
jz close
cmp [lib1.status_lib],0
jnz close
cmp [lib2.status_lib],0
jnz close
cmp [lib4.status_lib],0
jnz close
mcall SF_SET_EVENTS_MASK,0x80000067 ; 1100111b
;---------------------------------------------------------
@@ -222,9 +226,14 @@ include 'menu.inc'
;-----------------------------------------------------------
;------------variables and data of program------------------
;-----------------------------------------------------------
name_of_program db 'ANIMAGE graphics editor v1.54',0
mouse_pos_x db 'X='
mouse_pos_y db 'Y='
new_text1 db 'Picture size X'
new_text2 db 'Picture size Y'
ok_text db 'OK'
include 'lib_data.inc'
include 'panel_data.inc'
include 'brushes.inc'
include 'spray.inc'
include 'width_lines.inc'
@@ -3,8 +3,23 @@
;---------------------------------------------
align 4
mouse:
cmp [lib3.status_lib],0 ; test load library
jnz .m_end
cld
stdcall [kmainmenu_dispatch_cursorevent], [main_menu]
mov eax,[main_menu]
cmp dword[eax+16],-1
je @f
mov [m_lost],1
jmp still
@@:
cmp [m_lost],0
je .m_end
dec [m_lost]
jmp still
.m_end:
or ecx,-1
mcall SF_THREAD_INFO,procinfo
+19 -24
View File
@@ -1,15 +1,13 @@
macro square_width_put
{
local .no_put_to_screen
local .next_color_put
local .vertical_width_put
local .horizontal_width_put
align 4
square_width_put:
mov ebx,[ReserveArray]
mov eax,[ebx]
test eax,eax
jz .no_put_to_screen
mov ecx,[ebx]
cmp ecx,[Picture_SizeX]
jg .no_put_to_screen ;if ecx > screen size return
add ebx,4
xor ebp,ebp
@@ -48,13 +46,10 @@ local .horizontal_width_put
jnz .next_color_put
.no_put_to_screen:
}
ret
macro square_width_save
{
local .next_color_save
local .vertical_width_save
local .horizontal_width_save
align 4
square_width_save:
mov ebx,[ReserveArray]
mov [ebx],eax
mov ecx,eax
@@ -93,7 +88,7 @@ local .horizontal_width_save
add ebx,4
dec ecx
jnz .next_color_save
}
ret
macro draw_calc_pixels brush
{
@@ -680,7 +675,7 @@ TakeButtonInstruments:
no_new_line_xy:
;put saved pixels
square_width_put
call square_width_put
;calculate line
mov ebx,[ReserveArray]
@@ -712,7 +707,7 @@ TakeButtonInstruments:
call calculate_line
;save color pixels in ReserveArray
square_width_save
call square_width_save
;draw calculated pixels on work arrea
draw_calc_pixels width_pixels
@@ -746,7 +741,7 @@ TakeButtonInstruments:
no_new_rectangle_xy:
;put saved pixels
square_width_put
call square_width_put
;calculate line
mov ebx,[ReserveArray]
@@ -778,7 +773,7 @@ TakeButtonInstruments:
call calculate_rectangle
;save color pixels in ReserveArray
square_width_save
call square_width_save
;draw calculated pixels on work arrea
draw_calc_pixels width_pixels_rectangle
@@ -812,7 +807,7 @@ TakeButtonInstruments:
no_new_circle_xy:
;put saved pixels
square_width_put
call square_width_put
mov esi,[ScreenX]
mov edi,[ScreenY]
@@ -931,7 +926,7 @@ TakeButtonInstruments:
call calculate_circle
;save color pixels in ReserveArray
square_width_save
call square_width_save
;draw calculated pixels on work arrea
draw_calc_pixels width_pixels
@@ -1311,7 +1306,7 @@ end if
no_new_konture_xy:
;put saved pixels
square_width_put
call square_width_put
;calculate line
mov ebx,[ReserveArray]
@@ -1343,7 +1338,7 @@ end if
call calculate_line
;save color pixels in ReserveArray
square_width_save
call square_width_save
;draw calculated pixels on work arrea
draw_calc_pixels width_pixels
@@ -1384,7 +1379,7 @@ end if
no_new_ellips_xy:
;put saved pixels
square_width_put
call square_width_put
mov esi,[ScreenX]
@@ -1495,7 +1490,7 @@ end if
call calculate_ellips
;save color pixels in ReserveArray
square_width_save
call square_width_save
;draw calculated pixels on work arrea
draw_calc_pixels width_pixels
+8
View File
@@ -15,6 +15,8 @@ no_set:
}
init_main_menu:
cmp [lib3.status_lib],0 ; test load library
jnz @f
stdcall [kmenu_init], syscolors
stdcall [ksubmenu_new]
@@ -110,10 +112,14 @@ init_main_menu:
; add 'Reflection' menu to main
stdcall [kmenuitem_new], KMENUITEM_SUBMENU, sz_main_menu_Filters, [main_menu_filters]
stdcall [ksubmenu_add], [main_menu], eax
@@:
ret
put_main_menu:
cmp [lib3.status_lib],0 ; test load library
jnz @f
stdcall [kmainmenu_draw], [main_menu]
@@:
ret
button_handler_main_menu:
@@ -145,11 +151,13 @@ button_handler_main_menu:
.end_handler:
ret
align 4
main_menu dd 0
main_menu_file dd 0
main_menu_edit dd 0
main_menu_instr dd 0
main_menu_filters dd 0
m_lost db 0
sz_main_menu_File db 'File', 0
sz_main_menu_File_New db 'New', 0
-9
View File
@@ -1,9 +0,0 @@
;**********************************************************
;------------------TEXT DATA-------------------------------
;**********************************************************
name_of_program db 'ANIMAGE graphics editor v1.53',0
mouse_pos_x db 'X='
mouse_pos_y db 'Y='
new_text1 db 'PICTURE SIZE X'
new_text2 db 'PICTURE SIZE Y'
ok_text db 'OK'