Skip to content

Commit 635f363

Browse files
TEXT: fixing a bug where the text would not be rendered because it was shorter than a line
1 parent 8a79447 commit 635f363

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/MyStreamDeckPlugin.m

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ static CGImageRef ComposeImage(NSString *inImagePath, NSString *overlayText, NSC
134134
CGFloat strLenRemain = overlayText.length;
135135
CGFloat offset_y = 0.0;
136136

137-
while (strLenRemain >= LINE_LENGTH) {
137+
while (strLenRemain > 0) {
138138
//
139139
// PART 2: slicing the text into pieces that could fit our constraints
140140
//

0 commit comments

Comments
 (0)