fredsa / playn

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

Canvas.drawText is not repaint html backend #91

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?

text should repaint on html backend
text only repaint on java backend

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

playn trunk macosx 10.6

Please provide any additional information below.

This is a live bug report from GDD Sydney.

Original issue reported on code.google.com by pro...@google.com on 8 Nov 2011 at 6:18

GoogleCodeExporter commented 9 years ago
Please mark this as a duplicate of #85

Original comment by pro...@google.com on 9 Nov 2011 at 4:53

GoogleCodeExporter commented 9 years ago

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