We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esp8266-oled-ssd1306/src/OLEDDisplay.cpp
Line 716 in 057629d
Hello,
in every drawStringInternal there in an increase in line height so the last check: (yMove + lineNumber * lineHeight) >= this->height()
drawStringInternal
(yMove + lineNumber * lineHeight) >= this->height()
will always be true if the texts fill all the lines of the screen.
true
In order to solve, you can break the loop just after drawing the string:
drawStringResult = drawStringInternal(xMove, yMove + (lineNumber++) * lineHeight , &text[lastDrawnPos], preferredBreakpoint - lastDrawnPos, widthAtBreakpoint, true); if (drawStringResult == 0) // we are past the display already? break; if (firstLineChars == 0) firstLineChars = preferredBreakpoint;
and return:
if ((drawStringResult + lastDrawnPos) < length) { return firstLineChars ; } return 0;
The text was updated successfully, but these errors were encountered:
No branches or pull requests
esp8266-oled-ssd1306/src/OLEDDisplay.cpp
Line 716 in 057629d
Hello,
in every
drawStringInternal
there in an increase in line height so the last check:(yMove + lineNumber * lineHeight) >= this->height()
will always be
true
if the texts fill all the lines of the screen.In order to solve, you can break the loop just after drawing the string:
and return:
The text was updated successfully, but these errors were encountered: