undo: textAlignment

This commit is contained in:
Andrew Sampson 2025-08-15 20:58:30 +09:00 committed by GitHub
parent 2b46565a2e
commit e5a478cdd8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

3
clay.h
View file

@ -566,8 +566,6 @@ typedef struct Clay_TextRenderData {
uint16_t letterSpacing;
// The height of the bounding box for this line of text.
uint16_t lineHeight;
// Specifies the alignment of the text within its container.
Clay_TextAlignment textAlignment;
} Clay_TextRenderData;
// Render command data when commandType == CLAY_RENDER_COMMAND_TYPE_RECTANGLE
@ -2900,7 +2898,6 @@ void Clay__CalculateFinalLayout(void) {
.fontSize = textElementConfig->fontSize,
.letterSpacing = textElementConfig->letterSpacing,
.lineHeight = textElementConfig->lineHeight,
.textAlignment = textElementConfig->textAlignment,
}},
.userData = textElementConfig->userData,
.id = Clay__HashNumber(lineIndex, currentElement->id).id,