mirror of
https://github.com/processing/processing4.git
synced 2026-02-04 06:09:17 +01:00
fix for a bug in get(), also removed debug msg from mouse stuff
This commit is contained in:
@@ -336,10 +336,9 @@ public class PdeCompiler implements PdeMessageConsumer {
|
||||
/**
|
||||
* Return the path for a folder, with appended paths to
|
||||
* any .jar or .zip files inside that folder.
|
||||
* This will prepend a colon so that it can be directly
|
||||
* appended to another path string.
|
||||
* This will prepend a colon (or whatever the path separator is)
|
||||
* so that it can be directly appended to another path string.
|
||||
*/
|
||||
//static public String includeFolder(File folder) {
|
||||
static public String contentsToClassPath(File folder) {
|
||||
if (folder == null) return "";
|
||||
|
||||
@@ -370,7 +369,7 @@ public class PdeCompiler implements PdeMessageConsumer {
|
||||
e.printStackTrace(); // this would be odd
|
||||
}
|
||||
//System.out.println("included path is " + abuffer.toString());
|
||||
packageListFromClassPath(abuffer.toString()); // WHY?
|
||||
//packageListFromClassPath(abuffer.toString()); // WHY?
|
||||
return abuffer.toString();
|
||||
}
|
||||
|
||||
|
||||
@@ -314,8 +314,8 @@ public class PdeSketchbook {
|
||||
buildMenu(popupMenu);
|
||||
|
||||
// rebuild the "import library" menu
|
||||
importMenu.removeAll();
|
||||
librariesClassPath = "";
|
||||
importMenu.removeAll();
|
||||
if (addLibraries(importMenu, new File(getSketchbookPath()))) {
|
||||
importMenu.addSeparator();
|
||||
}
|
||||
|
||||
@@ -601,7 +601,6 @@ public class PApplet extends Applet
|
||||
mousePressed();
|
||||
break;
|
||||
case MouseEvent.MOUSE_RELEASED:
|
||||
System.out.println("mouse released");
|
||||
mousePressed = false;
|
||||
mouseReleased();
|
||||
break;
|
||||
|
||||
@@ -292,8 +292,7 @@ public class PImage implements PConstants, Cloneable {
|
||||
public int get(int x, int y) {
|
||||
if ((x < 0) || (y < 0) || (x >= width) || (y >= height)) return 0;
|
||||
return (format == RGB) ?
|
||||
(pixels[y*width + x] & 0x00ffffff) : pixels[y*width + x];
|
||||
//(pixels[y*width + x] & 0xff000000) : pixels[y*width + x];
|
||||
(pixels[y*width + x] | 0xff000000) : pixels[y*width + x];
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -189,6 +189,9 @@ X this was problem with rendering an image from PGraphics on board
|
||||
X http://processing.org/discourse/yabb/YaBB.cgi?board=Proce55ing_software_bugs;action=display;num=1091798655;start=0
|
||||
X http://processing.org/discourse/yabb/YaBB.cgi?board=Syntax;action=display;num=1080671926;start=0
|
||||
|
||||
040921 morning
|
||||
X bug in get() that was removing the high bits (rather than adding)
|
||||
|
||||
_ before graphics engine change, attach jogl stuff?
|
||||
_ massive graphics engine changes
|
||||
_ explicitly state depth()/nodepth()
|
||||
|
||||
Reference in New Issue
Block a user