Can change picture frame without having an image loaded. v1.4.2.

This commit is contained in:
Sandy Noble 2013-04-21 15:19:50 +01:00
parent a8e5e50743
commit e3a6cea6cd

View File

@ -51,7 +51,7 @@ import java.awt.event.*;
int majorVersionNo = 1;
int minorVersionNo = 4;
int buildNo = 0;
int buildNo = 2;
String programTitle = "Polargraph Controller v" + majorVersionNo + "." + minorVersionNo + " build " + buildNo;
ControlP5 cp5;
@ -1183,11 +1183,11 @@ void saveNewPropertiesFileWithFileChooser()
void setPictureFrameDimensionsToBox()
{
if (getDisplayMachine().pixelsCanBeExtracted() && isBoxSpecified())
{
// if (getDisplayMachine().pixelsCanBeExtracted() && isBoxSpecified())
// {
Rectangle r = new Rectangle(getDisplayMachine().inSteps(getBoxVector1()), getDisplayMachine().inSteps(getBoxVectorSize()));
getDisplayMachine().setPictureFrame(r);
}
// }
}
void setBoxToPictureframeDimensions()
{