scaling is nu gefixed, maar.. die colonies gaan ons altijd fucken

This commit is contained in:
BuildTools
2020-08-06 14:20:51 +02:00
parent 6fca4f27cc
commit 6f9f68a937
27 changed files with 34 additions and 22 deletions

View File

@@ -108,13 +108,11 @@ namespace opdracht2
//voorbereiding van scale waarden.
double scaleX = (c.ActualHeight > c.ActualWidth) ? c.ActualWidth : c.ActualHeight;
double scaleY = (c.ActualHeight > c.ActualWidth) ? c.ActualWidth : c.ActualHeight;
scaleX /= 2;
scaleY /= 2;
double offsetX = scaleX; //vroeger c.ActualWidth/2
double offsetY = scaleY;
double offsetX = 0; //vroeger c.ActualWidth/2
double offsetY = 0;
//dit zorgt voor evenredige scaling zonder stretching. als men wel stretching wilt gebruiken:
// scaleX = c.ActualWidth;
// scaleY = c.ActualHeight;