Minor code review

This commit is contained in:
Chuck Walbourn 2019-10-03 15:07:15 -07:00
parent 7bda0c3a57
commit 002baf8072

View File

@ -59,13 +59,17 @@ namespace
uint8_t bDescriptor; uint8_t bDescriptor;
}; };
static_assert(sizeof(TGA_HEADER) == 18, "TGA 2.0 size mismatch");
struct TGA_FOOTER struct TGA_FOOTER
{ {
uint16_t dwExtensionOffset; uint32_t dwExtensionOffset;
uint16_t dwDeveloperOffset; uint32_t dwDeveloperOffset;
char Signature[18]; char Signature[18];
}; };
static_assert(sizeof(TGA_FOOTER) == 26, "TGA 2.0 size mismatch");
struct TGA_EXTENSION struct TGA_EXTENSION
{ {
uint16_t wSize; uint16_t wSize;
@ -94,6 +98,9 @@ namespace
uint32_t dwScanOffset; uint32_t dwScanOffset;
uint8_t bAttributesType; uint8_t bAttributesType;
}; };
static_assert(sizeof(TGA_EXTENSION) == 495, "TGA 2.0 size mismatch");
#pragma pack(pop) #pragma pack(pop)
enum CONVERSION_FLAGS enum CONVERSION_FLAGS