mirror of
https://github.com/processing/processing4.git
synced 2026-06-16 04:26:26 +02:00
remove clear() after alll
This commit is contained in:
@@ -6637,11 +6637,6 @@ public class PGraphics extends PImage implements PConstants {
|
||||
// BACKGROUND
|
||||
|
||||
|
||||
public void clear() {
|
||||
showMethodWarning("clear");
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* ( begin auto-generated from background.xml )
|
||||
*
|
||||
|
||||
@@ -160,6 +160,13 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ {
|
||||
g2 = (Graphics2D) image.getGraphics();
|
||||
}
|
||||
|
||||
// Avoid badness when drawing shorter strokes.
|
||||
// http://code.google.com/p/processing/issues/detail?id=1068
|
||||
// With very small stroke increments, this was actually faster by 2x,
|
||||
// and for larger increments it was only 3% slower.
|
||||
g2.setRenderingHint(RenderingHints.KEY_STROKE_CONTROL,
|
||||
RenderingHints.VALUE_STROKE_PURE);
|
||||
|
||||
// can't un-set this because this may be only a resize
|
||||
// http://dev.processing.org/bugs/show_bug.cgi?id=463
|
||||
//defaultsInited = false;
|
||||
@@ -1818,12 +1825,6 @@ public class PGraphicsJava2D extends PGraphics /*PGraphics2D*/ {
|
||||
// BACKGROUND
|
||||
|
||||
|
||||
@Override
|
||||
public void clear() {
|
||||
clearPixels(0);
|
||||
}
|
||||
|
||||
|
||||
int[] clearPixels;
|
||||
|
||||
protected void clearPixels(int color) {
|
||||
|
||||
Reference in New Issue
Block a user