210
211
setSize(size, size);
214
QPixmap * pix = new QPixmap(width, height);
215
pix->fill(Qt::white);
216
//bitBlt((QPaintDevice *)(pix),0,0,(QPaintDevice *)(ih->getBoardPixmap(setting->readEntry("SKIN"))),x,y,width,height,Qt::CopyROP);
217
//bitBlt((QPaintDevice *)(pix),0,0,(QPaintDevice *)(ih->getTablePixmap(setting->readEntry("SKIN_TABLE"))),x,y,5,5,Qt::CopyROP,false);
218
copyBlt(pix,0,0,ih->getTablePixmap(setting->readEntry("SKIN_TABLE")),size * (x-1) - width/2,size * (y-1) - height/2,8,8);
219
//pix.fill((QWidget *)(canvas), x,y);
224
// we use a rectangle under the letter so as not to have the underlying grid
225
// lines interfere with the letter
226
// The only case where it is not set to 'true' is when a pass move is indicated,
227
// bottom right off the board. This is an 'over'kill
215
229
CHECK_PTR(canvas);
216
230
rect = new QCanvasRectangle(canvas);
218
232
rect->setPen(NoPen);
220
rect->setBrush(QBrush(white, *(ih->getBoardPixmap())));
221
234
rect->setSize(width, height);
235
//rect->setX(size * (x-1) - width/2);
236
//rect->setX(size * (y-1) - height/2);
237
//rect->setBrush(QBrush(white, *(ih->getBoardPixmap(static_cast<skinType>(setting->readIntEntry("SKIN"))))));
238
rect->setBrush(QBrush(white, *(ih->getBoardPixmap(setting->readEntry("SKIN")))));