mirror of
https://github.com/nicbarker/clay.git
synced 2025-09-18 04:26:18 +00:00
undo: textAlignment
This commit is contained in:
parent
2b46565a2e
commit
e5a478cdd8
3
clay.h
3
clay.h
|
@ -566,8 +566,6 @@ typedef struct Clay_TextRenderData {
|
||||||
uint16_t letterSpacing;
|
uint16_t letterSpacing;
|
||||||
// The height of the bounding box for this line of text.
|
// The height of the bounding box for this line of text.
|
||||||
uint16_t lineHeight;
|
uint16_t lineHeight;
|
||||||
// Specifies the alignment of the text within its container.
|
|
||||||
Clay_TextAlignment textAlignment;
|
|
||||||
} Clay_TextRenderData;
|
} Clay_TextRenderData;
|
||||||
|
|
||||||
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_RECTANGLE
|
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_RECTANGLE
|
||||||
|
@ -2900,7 +2898,6 @@ void Clay__CalculateFinalLayout(void) {
|
||||||
.fontSize = textElementConfig->fontSize,
|
.fontSize = textElementConfig->fontSize,
|
||||||
.letterSpacing = textElementConfig->letterSpacing,
|
.letterSpacing = textElementConfig->letterSpacing,
|
||||||
.lineHeight = textElementConfig->lineHeight,
|
.lineHeight = textElementConfig->lineHeight,
|
||||||
.textAlignment = textElementConfig->textAlignment,
|
|
||||||
}},
|
}},
|
||||||
.userData = textElementConfig->userData,
|
.userData = textElementConfig->userData,
|
||||||
.id = Clay__HashNumber(lineIndex, currentElement->id).id,
|
.id = Clay__HashNumber(lineIndex, currentElement->id).id,
|
||||||
|
|
Loading…
Reference in a new issue