mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
change private to protected so that text functions can be subclassed
This commit is contained in:
@@ -2914,8 +2914,8 @@ public class PGraphics extends PImage implements PConstants {
|
||||
* Emit a sentence of text, defined as a chunk of text without any newlines.
|
||||
* @param stop non-inclusive, the end of the text in question
|
||||
*/
|
||||
private boolean textSentence(char[] buffer, int start, int stop,
|
||||
float boxWidth, float spaceWidth) {
|
||||
protected boolean textSentence(char[] buffer, int start, int stop,
|
||||
float boxWidth, float spaceWidth) {
|
||||
float runningX = 0;
|
||||
|
||||
// Keep track of this separately from index, since we'll need to back up
|
||||
@@ -2980,7 +2980,7 @@ public class PGraphics extends PImage implements PConstants {
|
||||
}
|
||||
|
||||
|
||||
private void textSentenceBreak(int start, int stop) {
|
||||
protected void textSentenceBreak(int start, int stop) {
|
||||
if (textBreakCount == textBreakStart.length) {
|
||||
textBreakStart = PApplet.expand(textBreakStart);
|
||||
textBreakStop = PApplet.expand(textBreakStop);
|
||||
|
||||
Reference in New Issue
Block a user