diff --git a/main.py b/main.py index c425563..21c4c9a 100644 --- a/main.py +++ b/main.py @@ -26,7 +26,7 @@ def get_best_size(): if screensize[0] <= screensize[1]: best = screensize[0] else: - best = screensize[0] + best = screensize[1] return best pygame.init() @@ -62,7 +62,7 @@ if __name__ == "__main__": best_radios = get_best_size()/2-20 if winkel >= 360 or winkel <= -1: winkel = 0 - a,b = berechne_dreieck(winkel,200)#screensize[0]*screensize[1]) + a,b = berechne_dreieck(winkel,best_radios)#screensize[0]*screensize[1]) end_pos = start_pos[0]+a,start_pos[1]+b # draw c schwarz