Decompile fn_02437 (?BitsPerPixel@?A0x6d8cd988@@YAHW4_D3DFORMAT@@@Z)

Batch #12710 by cremane: 1 byte-identical, 0 confirmed by peer review.

- fn_02437 ?BitsPerPixel@?A0x6d8cd988@@YAHW4_D3DFORMAT@@@Z: byte-identical

Merged automatically: every function is byte-identical to the original.
This commit is contained in:
ragnarok-clanker 2026-11-06 00:06:55 +00:00
commit 4d47140980

View file

@ -18,14 +18,14 @@ namespace {
// FUNCTION: fn_02437
int BitsPerPixel(D3DFORMAT format) {
switch (format) {
case D3DFMT_A8R8G8B8:
case D3DFMT_X8R8G8B8:
return 32;
case D3DFMT_R5G6B5:
case D3DFMT_X1R5G5B5:
case D3DFMT_A1R5G5B5:
case D3DFMT_A4R4G4B4:
return 16;
case D3DFMT_A8R8G8B8:
case D3DFMT_X8R8G8B8:
return 32;
default:
return 0;
}