From 6b51f6ce094e88658f3f2054fdaf2ccdce2a8099 Mon Sep 17 00:00:00 2001 From: Pasi Kallinen Date: Sun, 8 Oct 2017 11:28:28 +0300 Subject: [PATCH] Qt4: Use TIMED_DELAY and same delay as tty --- sys/unix/hints/linux-qt4 | 1 + win/Qt4/qt4bind.cpp | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/sys/unix/hints/linux-qt4 b/sys/unix/hints/linux-qt4 index 4a3d4c1fd..51f6ad05b 100644 --- a/sys/unix/hints/linux-qt4 +++ b/sys/unix/hints/linux-qt4 @@ -24,6 +24,7 @@ CFLAGS=-O -I../include -DNOTPARMDECL CFLAGS+=-DHACKDIR=\"$(HACKDIR)\" CFLAGS+=-DSYSCF -DSYSCF_FILE=\"$(HACKDIR)/sysconf\" CFLAGS+=-DCOMPRESS=\"/bin/gzip\" -DCOMPRESS_EXTENSION=\".gz\" +CFLAGS+=-DTIMED_DELAY CFLAGS+=-DDUMPLOG CFLAGS+=-DCONFIG_ERROR_SECURE=FALSE CFLAGS+=-DQT_GRAPHICS -DDEFAULT_WINDOW_SYS=\"Qt\" -DNOTTYGRAPHICS diff --git a/win/Qt4/qt4bind.cpp b/win/Qt4/qt4bind.cpp index 5dc17de99..feed0a656 100644 --- a/win/Qt4/qt4bind.cpp +++ b/win/Qt4/qt4bind.cpp @@ -26,7 +26,9 @@ extern "C" { #endif #include "qt4bind.h" #include "qt4click.h" +#ifdef TIMED_DELAY #include "qt4delay.h" +#endif #include "qt4xcmd.h" #include "qt4key.h" #include "qt4map.h" @@ -581,8 +583,10 @@ void NetHackQtBind::qt_number_pad(int) void NetHackQtBind::qt_delay_output() { - NetHackQtDelay delay(15); +#ifdef TIMED_DELAY + NetHackQtDelay delay(50); delay.wait(); +#endif } void NetHackQtBind::qt_start_screen()