mirror of
https://github.com/processing/processing4.git
synced 2026-02-11 09:39:19 +01:00
fix bugs for setting smooth(), and space after OPENGL in export
This commit is contained in:
@@ -2366,7 +2366,7 @@ in */
|
||||
/**
|
||||
* Attempt to open a file using the platform's shell.
|
||||
*/
|
||||
public void open(String filename) {
|
||||
static public void open(String filename) {
|
||||
open(new String[] { filename });
|
||||
}
|
||||
|
||||
|
||||
@@ -1211,6 +1211,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
|
||||
|
||||
public void smooth() {
|
||||
smooth = true;
|
||||
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
|
||||
RenderingHints.VALUE_ANTIALIAS_ON);
|
||||
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
||||
@@ -1219,6 +1220,7 @@ public class PGraphicsJava2D extends PGraphics {
|
||||
|
||||
|
||||
public void noSmooth() {
|
||||
smooth = false;
|
||||
g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
|
||||
RenderingHints.VALUE_ANTIALIAS_OFF);
|
||||
g2.setRenderingHint(RenderingHints.KEY_INTERPOLATION,
|
||||
|
||||
Reference in New Issue
Block a user