We got type sizing, it matches the C compiler for windows struct, we got

a real compiler on our hands
This commit is contained in:
Krzosa Karol
2022-09-27 18:25:58 +02:00
parent 094b10576e
commit 7ab1b24bbe
5 changed files with 34 additions and 5 deletions

View File

@@ -24,9 +24,11 @@ CreateBitmap :: (size: Vec2I, bottom_up: Bool = true): Windows_Bitmap
if bottom_up == false
result.size.y = -result.size.y
header_size: U32 = SizeOf(BITMAPINFOHEADER)
Assert(header_size == 40)
bminfo := BITMAPINFO{
BITMAPINFOHEADER{
biSize = 40, // @todo!!! SizeOf(BITMAPINFOHEADER),
biSize = header_size,
biWidth = size.x->LONG,
biHeight = size.y->LONG,
biPlanes = 1,