From 8e0ea2e9c59c17bb87e63806fdaf146960c1eb44 Mon Sep 17 00:00:00 2001 From: helixhorned Date: Mon, 9 Apr 2012 19:21:39 +0000 Subject: [PATCH] On Windows, don't allow map playtesting from Mapster when in fullscreen. Because this doesn't even seem to work on XP, we're being spammed with DDERR_SURFACELOST messages... git-svn-id: https://svn.eduke32.com/eduke32@2600 1a8010ca-5511-0410-912e-c29ae57300e0 --- polymer/eduke32/build/src/build.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/polymer/eduke32/build/src/build.c b/polymer/eduke32/build/src/build.c index a95f7be16..f81ef53f6 100644 --- a/polymer/eduke32/build/src/build.c +++ b/polymer/eduke32/build/src/build.c @@ -10176,6 +10176,14 @@ void test_map(int32_t mode) else updatesector(startposx, startposy, &startsectnum); +#ifdef _WIN32 + if (fullscreen) + { + printmessage16("Must be in windowed mode to test map!"); + return; + } +#endif + if ((!mode && cursectnum >= 0) || (mode && startsectnum >= 0)) { char *param = " -map " PLAYTEST_MAPNAME " -noinstancechecking";