Skip to content

Commit 390d4f7

Browse files
committed
reverting back to C++17
1 parent 0e482ce commit 390d4f7

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

dlgtest.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -228,7 +228,7 @@ void CDlgTest::drawScreen() {
228228
drawFont(bitmap, bx * 8, 2, tmp, PURPLE);
229229

230230
// draw health bar
231-
drawRect(bitmap, Rect{.x = 4, .y = bitmap.m_nHei - 10, .width = std::min(game.health() / 2, bitmap.m_nLen - 4), .height = 8}, LIME);
231+
drawRect(bitmap, Rect{4, bitmap.m_nHei - 10, std::min(game.health() / 2, bitmap.m_nLen - 4), 8}, LIME);
232232

233233
// show screen
234234
QPixmap pixmap = frame2pixmap(bitmap);

mapedit.pro

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ QT += core gui
22

33
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets opengl
44

5-
CONFIG += c++20
5+
CONFIG += c++17
66

77
# You can make your code fail to compile if it uses deprecated APIs.
88
# In order to do so, uncomment the following line.
@@ -86,5 +86,5 @@ RESOURCES += \
8686
unix:LIBS += -lz
8787
win32:LIBS += -L"libs" -lzlib
8888

89-
QMAKE_CXXFLAGS_RELEASE += -O3
90-
QMAKE_CXXFLAGS_DEBUG += -g3
89+
QMAKE_CXXFLAGS_RELEASE += -std=c++17 -O3
90+
QMAKE_CXXFLAGS_DEBUG += -std=c++17 -g3

0 commit comments

Comments
 (0)