kiv: show image bpp in win header

This commit is contained in:
2025-03-17 22:30:55 +02:00
committed by Max Logaev
parent bfdb42c91f
commit 4e903ce12b

View File

@@ -1675,6 +1675,14 @@ proc generate_window_header
mov eax, [ebx+Image.Height] mov eax, [ebx+Image.Height]
call bin2dec 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], ')' mov byte[edi], ')'
inc edi inc edi
@@ -2544,6 +2552,18 @@ db 'XBM',0
.end: .end:
db 0 db 0
BppTypeNames:
db '@08b'
db '@24b'
db '@32b'
db '@15b'
db '@16b'
db '@01b'
db '@8gr'
db '@02b'
db '@04b'
db '@08a'
draw_window_fake: draw_window_fake:
ret ret
;------------------------------------------------------------------------------ ;------------------------------------------------------------------------------