-rw-r--r-- | noncore/games/chess/chess.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/noncore/games/chess/chess.cpp b/noncore/games/chess/chess.cpp index 96a838a..29c96bb 100644 --- a/noncore/games/chess/chess.cpp +++ b/noncore/games/chess/chess.cpp | |||
@@ -21,6 +21,8 @@ | |||
21 | 21 | ||
22 | // human is not offered a promotion yet | 22 | // human is not offered a promotion yet |
23 | 23 | ||
24 | #include <stdlib.h> | ||
25 | |||
24 | #include <qcanvas.h> | 26 | #include <qcanvas.h> |
25 | #include <qmainwindow.h> | 27 | #include <qmainwindow.h> |
26 | #include <qlist.h> | 28 | #include <qlist.h> |
@@ -338,9 +340,9 @@ BoardView::BoardView(QCanvas *c, QWidget *w, const char *name) | |||
338 | activePiece = 0; | 340 | activePiece = 0; |
339 | list.setAutoDelete(TRUE); | 341 | list.setAutoDelete(TRUE); |
340 | setCanvas(new QCanvas()); | 342 | setCanvas(new QCanvas()); |
341 | Config c("Chess", Config::User); | 343 | Config conf("Chess", Config::User); |
342 | c.setGroup("Theme"); | 344 | conf.setGroup("Theme"); |
343 | QString theme = c.readEntry("imagefile", "simple-28"); | 345 | QString theme = conf.readEntry("imagefile", "simple-28"); |
344 | setTheme(theme); | 346 | setTheme(theme); |
345 | crafty = new CraftyProcess(this); | 347 | crafty = new CraftyProcess(this); |
346 | crafty->addArgument("crafty"); | 348 | crafty->addArgument("crafty"); |