From: warwick Date: Fri, 18 Jan 2002 08:47:28 +0000 (+0000) Subject: (Qt) Old version support X-Git-Tag: MOVE2GIT~3451 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d2c3d254625cd1ea50fe713580fe7b480ad7cd04;p=nethack (Qt) Old version support Workarounds for Qt 2.1.0beta4 (?) --- diff --git a/win/Qt/qt_win.cpp b/win/Qt/qt_win.cpp index 81ce7bc4c..6716c9b78 100644 --- a/win/Qt/qt_win.cpp +++ b/win/Qt/qt_win.cpp @@ -110,8 +110,19 @@ extern "C" { #include #endif +// Some distributors released Qt 2.1.0beta4 +#if QT_VERSION < 220 +# define nh_WX11BypassWM 0x01000000 +#else +# define nh_WX11BypassWM WX11BypassWM +#endif + #ifdef USER_SOUNDS -#include +# if QT_VERSION < 220 +# undef USER_SOUNDS +# else +# include +# endif #endif @@ -4308,7 +4319,7 @@ NetHackQtBind::NetHackQtBind(int& argc, char** argv) : QPixmap pm("nhsplash.xpm"); if ( !pm.isNull() ) { QVBox *vb = new QVBox(0,0, - WStyle_Customize | WStyle_NoBorder | WX11BypassWM | WStyle_StaysOnTop ); + WStyle_Customize | WStyle_NoBorder | nh_WX11BypassWM | WStyle_StaysOnTop ); splash = vb; QLabel *lsplash = new QLabel(vb); lsplash->setAlignment(AlignCenter);