processing-android icon indicating copy to clipboard operation
processing-android copied to clipboard

Missing characters when changing orientation of app

Open codeanticode opened this issue 9 years ago • 0 comments
trafficstars

Sometimes (but not always), when changing the orientation of this sketch:

float angle;

void setup() {
  fullScreen(P3D);
  PFont font = createFont("Arial", 100);
  textFont(font);
}

void draw() {
  background(157);
  text("Frame " + frameCount, 40, 100);
  lights();
  translate(mouseX, mouseY);
  rotateX(angle);
  rotateY(angle);
  box(100);
  angle += 0.01f;
}

the text does not show all characters. The problem goes away when changing orientation again

codeanticode avatar May 06 '16 17:05 codeanticode