Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/kliment/Printrun.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--printrun/gl/panel.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/printrun/gl/panel.py b/printrun/gl/panel.py
index e1b1013..0253599 100644
--- a/printrun/gl/panel.py
+++ b/printrun/gl/panel.py
@@ -268,14 +268,14 @@ class wxGLPanel(BASE_CLASS):
glMatrixMode(GL_MODELVIEW)
glLoadIdentity()
self.setup_lights()
- if self.orthographic:
- wratio = self.width / self.dist
- hratio = self.height / self.dist
- minratio = float(min(wratio, hratio))
- self.zoom_factor = 1.0
- self.zoomed_width = wratio / minratio
- self.zoomed_height = hratio / minratio
- glScalef(factor * minratio, factor * minratio, 1)
+
+ wratio = self.width / self.dist
+ hratio = self.height / self.dist
+ minratio = float(min(wratio, hratio))
+ self.zoom_factor = 1.0
+ self.zoomed_width = wratio / minratio
+ self.zoomed_height = hratio / minratio
+ glScalef(factor * minratio, factor * minratio, 1)
def DrawCanvas(self):
"""Draw the window."""