From 45fccc484957f787e46fd87f3864e3559d8b73ea Mon Sep 17 00:00:00 2001 From: koldo Date: Wed, 26 Aug 2015 22:46:44 +0000 Subject: [PATCH] SysInfo_demo_console: Added by default NO_XTEST flag to avoid problems with old CentOS version git-svn-id: svn://ultimatepp.org/upp/trunk@8850 f0d560ea-af0d-0410-9eb7-867de7ffcac7 --- bazaar/SysInfo_demo_console/SysInfo_demo_console.upp | 1 + bazaar/SysInfo_demo_console/main.cpp | 6 ++++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/bazaar/SysInfo_demo_console/SysInfo_demo_console.upp b/bazaar/SysInfo_demo_console/SysInfo_demo_console.upp index 9c2972530..3d32bda5e 100644 --- a/bazaar/SysInfo_demo_console/SysInfo_demo_console.upp +++ b/bazaar/SysInfo_demo_console/SysInfo_demo_console.upp @@ -8,5 +8,6 @@ file main.cpp; mainconfig + "" = "NO_XTEST", "" = ""; diff --git a/bazaar/SysInfo_demo_console/main.cpp b/bazaar/SysInfo_demo_console/main.cpp index a981a5812..0a315207b 100644 --- a/bazaar/SysInfo_demo_console/main.cpp +++ b/bazaar/SysInfo_demo_console/main.cpp @@ -131,7 +131,7 @@ void Test() Puts("\nPress enter to continue..."); TestGetchar(); Puts("\nDrives list:"); - Array drives; + Vector drives; drives = GetDriveList(); for (int i = 0; i < drives.GetCount(); ++i) { Puts(Format("Drive path:'%s'", drives[i])); @@ -193,12 +193,14 @@ void Test() Mouse_GetPos(x, y); Puts(Format("Mouse pos is %d, %d", (int)x, (int)y)); Mouse_SetPos(200, 200, windowId); - + +#if defined(PLATFORM_WIN32) || !defined(flagNO_XTEST) Mouse_LeftClick(); Keyb_SendKeys("{HOME}This text is added by Keyb_SendKeys.\n"); Keyb_SendKeys("And the window resized and moved by Window_SetRect.\n", 0, 0); Keyb_SendKeys("And a window capture in c:\\Windowgrab.bmp.\n", 0, 0); Keyb_SendKeys("Some chars just for test: \\/:;,.ºª^[]{}´?¿~#@!¡\n", 0, 0); +#endif #if defined(PLATFORM_WIN32) Window_SetRect(windowId, 10, 10, 800, 400); #endif