Fix crash on Windows (#10)

This commit is contained in:
Dudejoe870 2024-08-31 16:55:42 -05:00 committed by GitHub
parent 39c2aa5305
commit 29ebed2010
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -57,7 +57,13 @@ BorderData :: struct {
color: Color, color: Color,
} }
RenderCommandType :: enum u8 { when ODIN_OS == .Windows {
EnumBackingType :: u32
} else {
EnumBackingType :: u8
}
RenderCommandType :: enum EnumBackingType {
None, None,
Rectangle, Rectangle,
Border, Border,
@ -104,7 +110,7 @@ ScrollElementConfig :: struct {
vertical: c.bool, vertical: c.bool,
} }
FloatingAttachPointType :: enum u8 { FloatingAttachPointType :: enum EnumBackingType {
LEFT_TOP, LEFT_TOP,
LEFT_CENTER, LEFT_CENTER,
LEFT_BOTTOM, LEFT_BOTTOM,
@ -156,7 +162,7 @@ ScrollContainerData :: struct {
found: c.bool, found: c.bool,
} }
SizingType :: enum u8 { SizingType :: enum EnumBackingType {
FIT, FIT,
GROW, GROW,
PERCENT, PERCENT,
@ -188,18 +194,18 @@ Padding :: struct {
y: c.uint16_t, y: c.uint16_t,
} }
LayoutDirection :: enum u8 { LayoutDirection :: enum EnumBackingType {
LEFT_TO_RIGHT, LEFT_TO_RIGHT,
TOP_TO_BOTTOM, TOP_TO_BOTTOM,
} }
LayoutAlignmentX :: enum u8 { LayoutAlignmentX :: enum EnumBackingType {
LEFT, LEFT,
RIGHT, RIGHT,
CENTER, CENTER,
} }
LayoutAlignmentY :: enum u8 { LayoutAlignmentY :: enum EnumBackingType {
TOP, TOP,
BOTTOM, BOTTOM,
CENTER, CENTER,