add corner gavity support

This commit is contained in:
Brandon Aaron
2015-10-27 15:10:10 -04:00
parent ef62daccf9
commit 25e5f27785
3 changed files with 125 additions and 72 deletions

View File

@@ -1096,6 +1096,16 @@ class PipelineWorker : public AsyncWorker {
case 4: // West
top = (inHeight - outHeight + 1) / 2;
break;
case 5: // Northeast
left = inWidth - outWidth;
break;
case 6: // Southeast
left = inWidth - outWidth;
top = inHeight - outHeight;
case 7: // Southwest
top = inHeight - outHeight;
case 8: // Northwest
break;
default: // Centre
left = (inWidth - outWidth + 1) / 2;
top = (inHeight - outHeight + 1) / 2;