2 Commits

Author SHA1 Message Date
9f8d54cc20 Flag: demo program rewritten from C to FASM
All checks were successful
Build system / Check kernel codestyle (pull_request) Successful in 37s
Build system / Build (pull_request) Successful in 8m10s
2025-04-22 15:03:30 +02:00
b948491fb3 Calc+: Fix list buttons UI (#220)
- Fixed list buttons wrong position and size;
- Fixed list buttons logic not working.

Reviewed-on: #220
Reviewed-by: Max Logaev <maxlogaev@proton.me>
Co-authored-by: Burer <burer@kolibrios.org>
Co-committed-by: Burer <burer@kolibrios.org>
2025-04-22 15:01:29 +02:00

View File

@@ -206,6 +206,12 @@ ev_button:
add ebx, 482
stdcall str_len, ebx
; skip first (space) character
test eax, eax
jz .redraw
dec eax
inc ebx
mov edx, exp
add edx, [edb1.size]
add edx, eax
@@ -559,9 +565,9 @@ proc draw_list
; BUTTONS
mov eax, SF_DEFINE_BUTTON
mov ebx, LIST_X shl 16 + LIST_ITEM_W
mov ecx, 43 shl 16 + LIST_ITEM_H
mov edx, 60 + BT_HIDE
mov ebx, LIST_X shl 16 + (LIST_ITEM_W - 1)
mov ecx, LIST_Y shl 16 + LIST_ITEM_H
mov edx, 0x60 + BT_HIDE
mov edi, LIST_ITEM_COUNT
@@: