Author: Carlos Lopez <genet...@gmail.com> Date: Sun Mar 3 13:57:04 2013 +0100
When passing the checkerboard sizes use it as the dark or clear square sizes --- .../gui/workarearenderer/renderer_background.cpp | 13 +++++-------- 1 files changed, 5 insertions(+), 8 deletions(-) diff --git a/synfig-studio/src/gui/workarearenderer/renderer_background.cpp b/synfig-studio/src/gui/workarearenderer/renderer_background.cpp index efdfd9b..49df054 100644 --- a/synfig-studio/src/gui/workarearenderer/renderer_background.cpp +++ b/synfig-studio/src/gui/workarearenderer/renderer_background.cpp @@ -91,7 +91,7 @@ Renderer_Background::render_vfunc( cairo_surface_t *check; - check=draw_check(16, 16); + check=draw_check(15, 15); cairo_save(cr); @@ -113,11 +113,8 @@ Renderer_Background::draw_check(int width, int height) { cairo_surface_t *surface; cairo_t *cr; - - width*=2; - height*=2; - - surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width, height); + + surface = cairo_image_surface_create (CAIRO_FORMAT_RGB24, width*2, height*2); cr = cairo_create (surface); cairo_surface_destroy (surface); @@ -126,8 +123,8 @@ Renderer_Background::draw_check(int width, int height) cairo_paint (cr); cairo_set_source_rgb (cr, 0.65, 0.65, 0.65); /* dark gray */ - cairo_rectangle (cr, int(width / 2), 0 , width / 2, height / 2); - cairo_rectangle (cr, 0, int(height / 2), width / 2, height / 2); + cairo_rectangle (cr, int(width), 0 , width, height); + cairo_rectangle (cr, 0, int(height), width , height); cairo_fill (cr); surface = cairo_surface_reference (cairo_get_target (cr)); ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_feb _______________________________________________ Synfig-devl mailing list Synfig-devl@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/synfig-devl