Match bool c style
This commit is contained in:
@@ -8,7 +8,7 @@ Platform :: struct
|
||||
bitmap: WIN32_Bitmap
|
||||
window_dc: HDC
|
||||
window: HWND
|
||||
good_scheduling: Bool
|
||||
good_scheduling: bool
|
||||
|
||||
WIN32_Bitmap :: struct
|
||||
size: Vec2I
|
||||
@@ -17,11 +17,11 @@ WIN32_Bitmap :: struct
|
||||
dib: HBITMAP
|
||||
compatible_dc: HDC
|
||||
|
||||
IsValidBitmap :: (b: *WIN32_Bitmap): Bool
|
||||
IsValidBitmap :: (b: *WIN32_Bitmap): bool
|
||||
result := b.data != 0
|
||||
return result
|
||||
|
||||
CreateBitmap :: (for_dc: HDC, size: Vec2I, bottom_up: Bool = true): WIN32_Bitmap
|
||||
CreateBitmap :: (for_dc: HDC, size: Vec2I, bottom_up: bool = true): WIN32_Bitmap
|
||||
result: WIN32_Bitmap = {size = size}
|
||||
if bottom_up == false
|
||||
result.size.y = -result.size.y
|
||||
@@ -57,7 +57,7 @@ DrawBitmapInCompatibleDC :: (b: *WIN32_Bitmap)
|
||||
SelectObject(b.hdc, b.dib)
|
||||
BitBlt(b.compatible_dc, 0, 0, b.size.x->int, b.size.y->int, b.hdc, 0, 0, SRCCOPY)
|
||||
|
||||
GetWindowStyle :: (resizable: Bool): DWORD
|
||||
GetWindowStyle :: (resizable: bool): DWORD
|
||||
style: DWORD = WS_SYSMENU | WS_OVERLAPPED | WS_CAPTION
|
||||
if resizable ;; style |= WS_MAXIMIZEBOX | WS_THICKFRAME | WS_MINIMIZEBOX
|
||||
return style
|
||||
@@ -96,7 +96,7 @@ SetWindowPosition :: (window: HWND, style: DWORD, pos: Vec2I): void
|
||||
StartMultimedia :: (
|
||||
x: S64 = 1280, y: S64 = 720,
|
||||
title: String = "Hello people!",
|
||||
window_resizable: Bool = false,
|
||||
window_resizable: bool = false,
|
||||
target_ms: F64 = 0.0166666
|
||||
)
|
||||
Mu.time.delta = target_ms
|
||||
@@ -145,7 +145,7 @@ StartMultimedia :: (
|
||||
Mu.window.sizef.x = Mu.window.x->F32
|
||||
Mu.window.sizef.y = Mu.window.y->F32
|
||||
|
||||
UpdateMultimedia :: (): Bool
|
||||
UpdateMultimedia :: (): bool
|
||||
DrawBitmapInCompatibleDC(&Mu.os.bitmap)
|
||||
|
||||
msg: MSG
|
||||
|
||||
Reference in New Issue
Block a user