mirror of
https://github.com/bvanroll/cs-map-project.git
synced 2025-09-02 22:02:42 +00:00
scaling is nu gefixed, maar.. die colonies gaan ons altijd fucken
This commit is contained in:
@@ -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;
|
||||
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Reference in New Issue
Block a user