bug fixes
This commit is contained in:
@@ -86,7 +86,7 @@ void setImage(int i) {
|
|||||||
imageLoaded = true;
|
imageLoaded = true;
|
||||||
redraw();
|
redraw();
|
||||||
}
|
}
|
||||||
|
boolean firstDrop = true;
|
||||||
void dropEvent(DropEvent theDropEvent) {
|
void dropEvent(DropEvent theDropEvent) {
|
||||||
|
|
||||||
if (theDropEvent.isFile()) {
|
if (theDropEvent.isFile()) {
|
||||||
@@ -98,6 +98,7 @@ void dropEvent(DropEvent theDropEvent) {
|
|||||||
println(folderURI);
|
println(folderURI);
|
||||||
for (int i = covers.size(); i-- != 0; covers.remove(i));
|
for (int i = covers.size(); i-- != 0; covers.remove(i));
|
||||||
ArrayList<String> imgs = new ArrayList<String>();
|
ArrayList<String> imgs = new ArrayList<String>();
|
||||||
|
imageNo = 0;
|
||||||
imageAmount = 0;
|
imageAmount = 0;
|
||||||
for (int i = 0; i < droppedFiles.length; i++) {
|
for (int i = 0; i < droppedFiles.length; i++) {
|
||||||
String fn = droppedFiles[i].toString().toLowerCase();
|
String fn = droppedFiles[i].toString().toLowerCase();
|
||||||
@@ -111,7 +112,10 @@ void dropEvent(DropEvent theDropEvent) {
|
|||||||
images = new PImage[imageAmount];
|
images = new PImage[imageAmount];
|
||||||
if (imageNo++ <= imageAmount) imageNo++; //open on page 2
|
if (imageNo++ <= imageAmount) imageNo++; //open on page 2
|
||||||
setImage(imageNo);
|
setImage(imageNo);
|
||||||
surface.setSize(displayWidth, displayHeight);
|
if (firstDrop) {
|
||||||
|
surface.setSize(displayWidth, displayHeight);
|
||||||
|
firstDrop = false;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user