Thomas Buck 10 лет назад
Родитель
Сommit
c8dec28362
3 измененных файлов: 3 добавлений и 4 удалений
  1. 2
    2
      CMakeLists.txt
  2. 1
    0
      README.md
  3. 0
    2
      src/FontTRLE.cpp

+ 2
- 2
CMakeLists.txt Просмотреть файл

@@ -39,13 +39,13 @@ if ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "Clang")
39 39
     set (WARNINGS "${WARNINGS} -Wno-disabled-macro-expansion")
40 40
     set (WARNINGS "${WARNINGS} -Wno-shorten-64-to-32 -Wno-sign-conversion")
41 41
     set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} -std=c++11")
42
-    set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0")
42
+    set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0 -ftrapv")
43 43
     set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer")
44 44
     set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -ffast-math -funroll-loops")
45 45
 elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "GNU")
46 46
     set (WARNINGS "${WARNINGS} -Wall -Wextra -Wpedantic")
47 47
     set (OpenRaider_CXX_FLAGS "${OpenRaider_CXX_FLAGS} -std=c++11")
48
-    set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0")
48
+    set (OpenRaider_CXX_FLAGS_DEBUG "${OpenRaider_CXX_FLAGS_DEBUG} -g -O0 -ftrapv")
49 49
     set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -O2 -fomit-frame-pointer")
50 50
     set (OpenRaider_CXX_FLAGS_RELEASE "${OpenRaider_CXX_FLAGS_RELEASE} -ffast-math -funroll-loops")
51 51
 elseif ("${CMAKE_CXX_COMPILER_ID}" STREQUAL "MSVC")

+ 1
- 0
README.md Просмотреть файл

@@ -35,6 +35,7 @@ Basically, OpenRaider depends on the following:
35 35
 * zlib
36 36
 * cmake as build system
37 37
 * libpng (optional)
38
+* C++11 compiler
38 39
 
39 40
 On Mac OS X 10.9 with [XCode](https://developer.apple.com/xcode/) and [MacPorts](http://www.macports.org) installed, the following should be enough to get all dependencies that are available as port:
40 41
 

+ 0
- 2
src/FontTRLE.cpp Просмотреть файл

@@ -22,8 +22,6 @@ FontTRLE::~FontTRLE() {
22 22
 }
23 23
 
24 24
 int FontTRLE::initialize() {
25
-    //! \todo Font coloring not working when .pc has color?!?!
26
-
27 25
     assert(mFontInit == false);
28 26
     assert(mFontName != NULL);
29 27
     assert(mFontName[0] != '\0');

Загрузка…
Отмена
Сохранить