blob: 9ce087e61d6f3f934e58249ace2720a98db0d9f5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
$NetBSD: patch-kfouleggs_piece.cpp,v 1.1 2013/09/12 20:11:30 jperkin Exp $
Avoid "error: call of overloaded <func> is ambiguous"
--- kfouleggs/piece.cpp.orig 2005-09-10 08:18:28.000000000 +0000
+++ kfouleggs/piece.cpp
@@ -49,13 +49,13 @@ void FEPieceInfo::setMask(QPixmap *pixma
// base circle
int w = pixmap->width();
- int d = (int)((sqrt(2)-2./3)*w);
+ int d = (int)((sqrt(2.)-2./3)*w);
QRect cr = QRect(0, 0, d, d);
cr.moveCenter(QPoint(w/2, w/2));
p.drawEllipse(cr);
if (blockMode) {
- int a = (int)(w/(3.*sqrt(2)));
+ int a = (int)(w/(3.*sqrt(2.)));
int ra = 2*w/3+1;
cr = QRect(0, 0, ra, ra);
|