fix for text box sizing bug

This commit is contained in:
benfry
2005-06-28 15:45:07 +00:00
parent bd92960a4b
commit ef9f9a80ca
3 changed files with 2 additions and 4 deletions

View File

@@ -2004,7 +2004,7 @@ public class PGraphics extends PImage implements PConstants {
float spaceWidth = textWidth(' ');
float runningX = x1; //boxX1;
float currentY = y1; //boxY1;
float boxWidth = x2 - x2; //boxX2 - boxX1;
float boxWidth = x2 - x1; //boxX2 - boxX1;
// lineX is the position where the text starts, which is adjusted
// to left/center/right based on the current textAlign