gui/graph_displayer_canvas-zoom.cc
changeset 1769 a67ec111236c
parent 1606 dc4ea2010dee
child 1777 a70cee06ae9c
equal deleted inserted replaced
1:ebc936751b45 2:11390e85cbce
     1 #include "graph_displayer_canvas.h"
     1 #include "graph_displayer_canvas.h"
     2 #include "broken_edge.h"
     2 #include "broken_edge.h"
     3 #include <math.h>
     3 #include <cmath>
     4 
     4 
     5 void GraphDisplayerCanvas::zoomIn()
     5 void GraphDisplayerCanvas::zoomIn()
     6 {
     6 {
     7   set_pixels_per_unit(
     7   set_pixels_per_unit(
     8       (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit());
     8       (1.0 + (double) zoom_step / 100.0) * get_pixels_per_unit());