fredsa / playn

Cross platform game library for N≥4 platforms
0 stars 1 forks source link

Canvas.drawText not refreshing on html backend #85

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
CanvasImage pointsImage;
ImageLayer pointsLayer;
void initPoints() {
  pointsImage = graphics().createImage(width, 50);
  pointsLayer = graphics().createImageLayer(pointsImage);
  pointsLayer.setScale(3f);
  graphics().rootLayer().add(pointsLayer);
}
public void paint(float delta) {
  String s = Integer.toString(points);
  pointsImage.canvas().clear();
  pointsImage.canvas().setFillColor(0xff000000);
  pointsImage.canvas().drawText(s, 10f, 20f);
}

What is the expected output? What do you see instead?

Canvas should refresh on html backend
Canvas refresh only on java backend

What version of the product are you using? On what operating system?

git trunk - macosx 10.6

Please provide any additional information below.

This is a live bug report from GDD 2011 Tokyo

Original issue reported on code.google.com by pro...@google.com on 1 Nov 2011 at 5:17

GoogleCodeExporter commented 9 years ago
Issue 91 has been merged into this issue.

Original comment by pro...@google.com on 10 Dec 2011 at 4:55

GoogleCodeExporter commented 9 years ago
This issue was closed by revision 744b7b739aea.

Original comment by m...@samskivert.com on 27 Feb 2012 at 5:10