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:
parent
ee34aebabf
commit
4d47140980
1 changed files with 3 additions and 3 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue