diff options
| author | Mario Torre <neugens@limasoftware.net> | 2008-05-29 16:41:39 +0000 |
|---|---|---|
| committer | Mario Torre <neugens@limasoftware.net> | 2008-05-29 16:41:39 +0000 |
| commit | c191297d1febe4e68c77215726c451c095d9c954 (patch) | |
| tree | e8c9585dd1ab0ad6353c50e9d4a7f08f7075fa5b /gnu/java/awt/java2d/ScanlineConverter.java | |
| parent | 1a8cbdd821fd0bcd92cd104abc091ababd777973 (diff) | |
| download | classpath-c191297d1febe4e68c77215726c451c095d9c954.tar.gz | |
2008-05-29 Mario Torre <neugens@aicas.com>
* 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.
Diffstat (limited to 'gnu/java/awt/java2d/ScanlineConverter.java')
| -rw-r--r-- | gnu/java/awt/java2d/ScanlineConverter.java | 2 |
1 files changed, 1 insertions, 1 deletions
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); |
