kiv: show bpp of the file in window header

This commit is contained in:
2025-03-17 20:31:20 +02:00
parent 6510440a68
commit 1a1d333a4a

View File

@@ -1675,6 +1675,14 @@ proc generate_window_header
mov eax, [ebx+Image.Height]
call bin2dec
mov eax, [ebx+Image.Type]
dec eax
shl eax, 2
add eax, BppTypeNames
mov eax, [eax]
mov dword[edi], eax
add edi, 4
mov byte[edi], ')'
inc edi
@@ -2544,6 +2552,21 @@ db 'XBM',0
.end:
db 0
BppTypeNames:
db '@08b'
db '@24b'
db '@32b'
db '@15b'
db '@16b'
db '@01b'
db '@8gr'
db '@02b'
db '@04b'
db '@08a'
icons_resname db 'ICONS18W', 0
shared_icons_ptr dd ?
draw_window_fake:
ret
;------------------------------------------------------------------------------