]> granicus.if.org Git - nethack/commitdiff
Qt4: Use TIMED_DELAY and same delay as tty
authorPasi Kallinen <paxed@alt.org>
Sun, 8 Oct 2017 08:28:28 +0000 (11:28 +0300)
committerPasi Kallinen <paxed@alt.org>
Sun, 8 Oct 2017 08:28:28 +0000 (11:28 +0300)
sys/unix/hints/linux-qt4
win/Qt4/qt4bind.cpp

index 4a3d4c1fde6cc169f81c28e61eb89ba3c57366a7..51f6ad05b7bf5142325a8b28663b97b48e377189 100644 (file)
@@ -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
index 5dc17de999a1b058ed2479fcdc4354b8d3f4221a..feed0a656333b1578fd65afbcf963c7c55a41336 100644 (file)
@@ -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()