Author: Yu Chen <jco...@gmail.com> Date: Tue Jan 10 00:18:31 2012 +0800
Place preview content in the center of preview window --- synfig-studio/src/gui/preview.cpp | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/synfig-studio/src/gui/preview.cpp b/synfig-studio/src/gui/preview.cpp index 7f232d2..c02f859 100644 --- a/synfig-studio/src/gui/preview.cpp +++ b/synfig-studio/src/gui/preview.cpp @@ -593,7 +593,8 @@ bool studio::Widget_Preview::redraw(GdkEventExpose */*heh*/) Gdk::Cairo::set_source_pixbuf( cr, //cairo context pxnew, //pixbuf - 0, 0 //coordinates to place upper left corner of pixbuf + //coordinates to place center of the preview window + (draw_area.get_width() - nw) / 2, (draw_area.get_height() - nh) / 2 ); cr->paint(); cr->restore(); ------------------------------------------------------------------------------ Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl