fixes for SCREEN_SPACE text and avoiding infinite loop in printMatrix

This commit is contained in:
benfry
2005-03-21 17:57:11 +00:00
parent 04cd3cb809
commit 3840a62ca7
5 changed files with 53 additions and 13 deletions

View File

@@ -865,7 +865,10 @@ public class PGraphics2 extends PGraphics {
//check_image_cache(image);
// blit image to the screen
//graphics.drawImage((BufferedImage) image.cache, 0, 0, null);
push();
resetMatrix();
imageImpl(image, 0, 0, width, height, 0, 0, width, height);
pop();
}
@@ -904,6 +907,9 @@ public class PGraphics2 extends PGraphics {
public void loadPixels() {
if ((pixels == null) || (pixels.length != width * height)) {
pixels = new int[width * height];
}
((BufferedImage) image).getRGB(0, 0, width, height, pixels, 0, width);
}