mirror of
https://github.com/nicbarker/clay.git
synced 2025-04-20 21:28:03 +00:00
Fix initializers
This commit is contained in:
parent
9345c2ed48
commit
004ed63372
4
clay.h
4
clay.h
@ -2563,7 +2563,7 @@ void Clay__CalculateFinalLayout() {
|
||||
scrollOffset.y = mapping->scrollPosition.y;
|
||||
}
|
||||
if (Clay__externalScrollHandlingEnabled) {
|
||||
scrollOffset = (Clay_Vector2) {};
|
||||
scrollOffset = CLAY__INIT(Clay_Vector2) {};
|
||||
}
|
||||
break;
|
||||
}
|
||||
@ -2727,7 +2727,7 @@ void Clay__CalculateFinalLayout() {
|
||||
if (scrollConfig->horizontal) { scrollOffset.x = mapping->scrollPosition.x; }
|
||||
if (scrollConfig->vertical) { scrollOffset.y = mapping->scrollPosition.y; }
|
||||
if (Clay__externalScrollHandlingEnabled) {
|
||||
scrollOffset = (Clay_Vector2) {};
|
||||
scrollOffset = CLAY__INIT(Clay_Vector2) {};
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user