Fix CGRectMake parameter

This commit is contained in:
VincentRoth 2016-06-30 10:09:11 +02:00 committed by GitHub
parent 3f01a95c73
commit ad3166a3e6

View File

@ -42,9 +42,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
CGRect rect;
if (3 >= [command.arguments count]) {
NSArray *positionValues = command.arguments[2];
rect = CGRectMake([0,0,
[[positionValues objectAtIndex:0] floatValue],
[[positionValues objectAtIndex:1] floatValue]);
rect = CGRectMake(0,0,[[positionValues objectAtIndex:0] floatValue],[[positionValues objectAtIndex:1] floatValue]);
} else {
rect = CGRectMake(0, 0, 1000.0f, 150.0f);
}