From c8e7773f7d8bd40656af4f99bcaaf052c796cf38 Mon Sep 17 00:00:00 2001 From: dooglus Date: Thu, 31 Jan 2008 14:12:35 +0000 Subject: [PATCH] Tidying. git-svn-id: http://svn.voria.com/code@1532 1f10aa63-cdf2-0310-b900-c93c546f37ac --- synfig-studio/trunk/src/gtkmm/canvasview.cpp | 2 -- synfig-studio/trunk/src/gtkmm/renderer_canvas.cpp | 1 - synfig-studio/trunk/src/gtkmm/workarea.cpp | 6 ------ 3 files changed, 9 deletions(-) diff --git a/synfig-studio/trunk/src/gtkmm/canvasview.cpp b/synfig-studio/trunk/src/gtkmm/canvasview.cpp index fd9a212..e9fe579 100644 --- a/synfig-studio/trunk/src/gtkmm/canvasview.cpp +++ b/synfig-studio/trunk/src/gtkmm/canvasview.cpp @@ -1311,7 +1311,6 @@ CanvasView::init_menus() } } - action_group->add( Gtk::Action::create("play", Gtk::Stock::MEDIA_PLAY), sigc::mem_fun(*this, &studio::CanvasView::play) ); @@ -1351,7 +1350,6 @@ CanvasView::init_menus() sigc::mem_fun(*work_area, &studio::WorkArea::zoom_norm) ); - { Glib::RefPtr action; diff --git a/synfig-studio/trunk/src/gtkmm/renderer_canvas.cpp b/synfig-studio/trunk/src/gtkmm/renderer_canvas.cpp index 1a137fb..81d922d 100644 --- a/synfig-studio/trunk/src/gtkmm/renderer_canvas.cpp +++ b/synfig-studio/trunk/src/gtkmm/renderer_canvas.cpp @@ -152,7 +152,6 @@ Renderer_Canvas::render_vfunc( } else { - int div = 1 << get_work_area()->get_lowrespixel(); const int width_in_tiles(w/tile_w+(((get_work_area()->get_low_resolution_flag())?((w/div)%(tile_w/div)):(w%tile_w))?1:0)); const int height_in_tiles(h/tile_h+(h%tile_h?1:0)); diff --git a/synfig-studio/trunk/src/gtkmm/workarea.cpp b/synfig-studio/trunk/src/gtkmm/workarea.cpp index 1815fa1..f436f91 100644 --- a/synfig-studio/trunk/src/gtkmm/workarea.cpp +++ b/synfig-studio/trunk/src/gtkmm/workarea.cpp @@ -171,7 +171,6 @@ public: set_clipping(true); if(low_res) { - int div = 1 << workarea->get_lowrespixel(); set_tile_w(workarea->tile_w/div); set_tile_h(workarea->tile_h/div); @@ -352,7 +351,6 @@ public: if(low_res) { // We need to scale up - int div = 1 << workarea->get_lowrespixel(); pixbuf=pixbuf->scale_simple( surface.get_w()*div, @@ -1996,7 +1994,6 @@ WorkArea::next_unrendered_tile(int refreshes)const x(focus_point[0]/pw+drawing_area->get_width()/2-w/2), y(focus_point[1]/ph+drawing_area->get_height()/2-h/2); - int div = 1 << lowrespixel; const int width_in_tiles(w/tile_w+((low_resolution?((w/div)%(tile_w/div)):(w%tile_w))?1:0)); const int height_in_tiles(h/tile_h+(h%tile_h?1:0)); @@ -2173,9 +2170,6 @@ WorkArea::set_lowrespixel(int x) queue_render_preview(); } - - - namespace studio { class WorkAreaProgress : public synfig::ProgressCallback -- 2.7.4