From c191297d1febe4e68c77215726c451c095d9c954 Mon Sep 17 00:00:00 2001 From: Mario Torre Date: Thu, 29 May 2008 16:41:39 +0000 Subject: 2008-05-29 Mario Torre * gnu/java/awt/java2d/AbstractGraphics2D.java (setColor): now set directly the foreground color the application wants to use to draw. On null, behave like OpenJDK, drawing black. (renderScanline): fixed NPE, paintContext never initialized. Correctely retrieve destination raster (getColor): Return the correct type. (static initializer): HashMap now typed. (background): now defaults to black and not null. (getPaintContext): new method. Initialize lazily the PaintContext. (foreground): new field. (isForegroundColorNull): likewise. (getDeviceBounds): made abstract. * gnu/java/awt/java2d/RasterGraphics.java (getDeviceBounds): new method. * gnu/java/awt/java2d/ScanlineConverter.java (renderShape): pass correct value of Y to doScanline. * gnu/java/awt/peer/x/GLGraphics.java (getDeviceBounds): new method. (setBackground): synch with new Escher 2.0 API. * gnu/java/awt/peer/x/XGraphicsConfiguration.java (getDefaultTransform): implemented. (getBounds): new method. * java/awt/AlphaComposite.java (derive(int) and derive(float)): new methods. * java/awt/image/WritableRaster.java (createWritableTranslatedChild): now call createWritableChild. (createWritableChild): reformatted. --- gnu/java/awt/java2d/ScanlineConverter.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gnu/java/awt/java2d/ScanlineConverter.java') diff --git a/gnu/java/awt/java2d/ScanlineConverter.java b/gnu/java/awt/java2d/ScanlineConverter.java index cc4bbef28..ac27cc18d 100644 --- a/gnu/java/awt/java2d/ScanlineConverter.java +++ b/gnu/java/awt/java2d/ScanlineConverter.java @@ -206,7 +206,7 @@ public final class ScanlineConverter // Ok, now we can perform the actual scanlining. int realY = Fixed.intValue(FIXED_DIGITS, y + resolution); boolean push = lastRealY != realY; - doScanline(p, y, push, haveClip); + doScanline(p, realY, push, haveClip); // Remove obsolete active edges. //activeEdges.remove(y + halfStep); -- cgit v1.2.1