diff --git a/kpacman/CMakeLists.txt b/kpacman/CMakeLists.txt index 985e259..c4dae7a 100644 --- a/kpacman/CMakeLists.txt +++ b/kpacman/CMakeLists.txt @@ -13,8 +13,6 @@ link_directories( ${TDEGAMES_LIBRARY_DIRS} ) -add_definitions( -fpermissive ) - ##### kpacman (executable) diff --git a/kpacman/bitfont.cpp b/kpacman/bitfont.cpp index 28a265e..f1535fb 100644 --- a/kpacman/bitfont.cpp +++ b/kpacman/bitfont.cpp @@ -26,7 +26,7 @@ TQPixmap Bitfont::text(TQString str, TQColor fg, TQColor bg) TQPixmap FG(str.length()*fontWidth, fontHeight); TQBitmap MASK(str.length()*fontWidth, fontHeight, TRUE); - const uchar *s = str.latin1(); + const uchar *s = reinterpret_cast(str.latin1()); for (uint i = 0; i < str.length(); i++) { if (font.width() == font.height()) bitBlt(&MASK, i*fontWidth, 0, &font, diff --git a/kpacman/board.cpp b/kpacman/board.cpp index 8a07310..621a086 100644 --- a/kpacman/board.cpp +++ b/kpacman/board.cpp @@ -93,7 +93,7 @@ void Board::init(Image image, TQString levelName) break; case Level : setup(demo_bits); break; - case File : setup(map.latin1()); + case File : setup(reinterpret_cast(map.latin1())); break; default : break; }