apps/reshare: fix to previous
Some checks failed
Build system / Check kernel codestyle (pull_request) Successful in 22s
Build system / Build (pull_request) Failing after 2m28s

This commit is contained in:
2026-02-05 09:24:01 +02:00
parent f676109eea
commit 084110a2ba
2 changed files with 12 additions and 12 deletions

View File

@@ -8,10 +8,10 @@
; ==================================================================== ; ====================================================================
CHBOX_WIDTH = 13 CBOX_WIDTH = 13
CHBOX_HEIGHT = 13 CBOX_HEIGHT = 13
CHBOX_PIXELS = CHBOX_WIDTH * CHBOX_HEIGHT CBOX_PIXELS = CBOX_WIDTH * CBOX_HEIGHT
CHBOX_IMG_SIZE = CHBOX_PIXELS * 3 ; 24-bpp RGB, tight rows CBOX_IMG_SIZE = CBOX_PIXELS * 3 ; 24-bpp RGB, tight rows
; ==================================================================== ; ====================================================================

View File

@@ -288,7 +288,7 @@ endl
jae .end_for_icons jae .end_for_icons
push ecx push ecx
; SF_PUT_IMAGE_EXT _icon_img+icon_size*index, <_icon_w, _icon_w>, <x+x_off, y+RES_Y>, 32, 0, 0 ; SF_PUT_IMAGE_EXT _icon_img+icon_size*index, <_icon_w, _icon_w>, <x+x_off, y+RES_Y>, 32, 0, 0
mov ebx, [icon_size] mov ebx, [icon_size]
imul ebx, ecx imul ebx, ecx
add ebx, [_icon_img] add ebx, [_icon_img]
@@ -342,8 +342,8 @@ proc draw_tab_cbox stdcall
jz .done jz .done
mov ebx, eax mov ebx, eax
mcall SF_PUT_IMAGE, , \ mcall SF_PUT_IMAGE, , \
<CHBOX_WIDTH, CHBOX_HEIGHT>, \ <CBOX_WIDTH, CBOX_HEIGHT>, \
<(WIN.W - CHBOX_WIDTH)/2, (WIN.H - RES_Y - CHBOX_HEIGHT)/2 + RES_Y> <(WIN.W - CBOX_WIDTH)/2, (WIN.H - RES_Y - CBOX_HEIGHT)/2 + RES_Y>
mcall SF_SYS_MISC, SSF_MEM_CLOSE, lb_tab_cbox mcall SF_SYS_MISC, SSF_MEM_CLOSE, lb_tab_cbox
@@ -405,17 +405,17 @@ MODE_DAEMON:
mov [edi + META_I18W_W], ebx mov [edi + META_I18W_W], ebx
mov [edi + META_I18W_C], ecx mov [edi + META_I18W_C], ecx
mov dword [edi + META_CBOX_W], CHBOX_WIDTH mov dword [edi + META_CBOX_W], CBOX_WIDTH
mov dword [edi + META_CBOX_H], CHBOX_HEIGHT mov dword [edi + META_CBOX_H], CBOX_HEIGHT
mov dword [edi + META_CBOX_SIZE], CHBOX_IMG_SIZE mov dword [edi + META_CBOX_SIZE], CBOX_IMG_SIZE
.meta_done: .meta_done:
DEBUGF DBG_INFO, "I: @reshare: starting in daemon mode\n" DEBUGF DBG_INFO, "I: @reshare: starting in daemon mode\n"
mcall SF_SYS_MISC, SSF_MEM_OPEN, lb_tab_cbox, CHBOX_IMG_SIZE, SHM_CREATE + SHM_WRITE mcall SF_SYS_MISC, SSF_MEM_OPEN, lb_tab_cbox, CBOX_IMG_SIZE, SHM_CREATE + SHM_WRITE
test eax, eax test eax, eax
jz .skip_cbox jz .skip_cbox
mov esi, cbox_image mov esi, cbox_image
mov edi, eax mov edi, eax
mov ecx, CBOX_IMG_SIZE mov ecx, CBOX_IMG_SIZE
cld cld