X-Git-Url: http://winboard.nl/cgi-bin?a=blobdiff_plain;f=xboard.c;h=2ac676d300ed05fefc7278f10ba260f1af54cd66;hb=faa0fea4cf9cc9de2d73add4695af3ed06517787;hp=1d0de9f5a805249b8e1fe93bffe5c536393868b6;hpb=bb308d141da0e79f9010aef7eb48f1d4044bab4e;p=xboard.git diff --git a/xboard.c b/xboard.c index 1d0de9f..2ac676d 100644 --- a/xboard.c +++ b/xboard.c @@ -1669,14 +1669,6 @@ SetupDropMenu () } } -cairo_surface_t * -GetOutputSurface(Option *opt, int w, int h) -{ - if(w == 0) w = lineGap + BOARD_WIDTH * (squareSize + lineGap); - if(h == 0) h = lineGap + BOARD_HEIGHT * (squareSize + lineGap); - return cairo_xlib_surface_create(xDisplay, XtWindow(opt->handle), DefaultVisual(xDisplay, 0), w, h); -} - static void do_flash_delay (unsigned long msec) { @@ -1912,7 +1904,7 @@ ModeHighlight () /* Maybe all the enables should be handled here, not just this one */ EnableNamedMenuItem("Mode.Training", gameMode == Training || gameMode == PlayFromGameFile); - DisplayLogos(optList[W_WHITE-1].handle, optList[W_BLACK+1].handle); + DisplayLogos(&optList[W_WHITE-1], &optList[W_BLACK+1]); } @@ -2560,7 +2552,7 @@ UpdateLogos (int displ) if(optList[W_WHITE-1].handle == NULL) return; LoadLogo(&first, 0, 0); LoadLogo(&second, 1, appData.icsActive); - if(displ) DisplayLogos(optList[W_WHITE-1].handle, optList[W_BLACK+1].handle); + if(displ) DisplayLogos(&optList[W_WHITE-1], &optList[W_BLACK+1]); return; }