X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=draw.c;h=30e6200ef9769eb1db5914455dc68861c73feafe;hb=50ffaff1de1b05f1bf76dd842e734eff2974afd4;hp=02c280534b1f58fa6b4c43e8f6c4cdf195c472a9;hpb=aa694af0138b799c4de3e031d15c2a9be3112b6c;p=xboard.git diff --git a/draw.c b/draw.c index 02c2805..30e6200 100644 --- a/draw.c +++ b/draw.c @@ -586,7 +586,8 @@ DrawLogo (Option *opt, void *logo) w = cairo_image_surface_get_width (img); h = cairo_image_surface_get_height (img); cr = cairo_create(DRAWABLE(opt)); - cairo_scale(cr, (float)appData.logoSize/w, appData.logoSize/(2.*h)); +// cairo_scale(cr, (float)appData.logoSize/w, appData.logoSize/(2.*h)); + cairo_scale(cr, (float)opt->max/w, (float)opt->value/h); cairo_set_source_surface (cr, img, 0, 0); cairo_paint (cr); cairo_destroy (cr); @@ -778,8 +779,8 @@ void CopyRectangle (AnimNr anr, int srcBuf, int destBuf, cairo_rectangle (cr, destX, destY, width, height); cairo_fill (cr); cairo_destroy (cr); - if(c_animBufs[anr+destBuf] == csBoardWindow) - GraphExpose(currBoard, destX, destY, squareSize, squareSize); + if(c_animBufs[anr+destBuf] == csBoardWindow) // suspect that GTK needs this! + GraphExpose(currBoard, destX, destY, width, height); } void