2011-03-13 21:21:16 +00:00
|
|
|
/*
|
|
|
|
* OpenClonk, http://www.openclonk.org
|
|
|
|
*
|
2016-04-03 18:18:29 +00:00
|
|
|
* Copyright (c) 2010-2016, The OpenClonk Team and contributors
|
2011-03-13 21:21:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* Distributed under the terms of the ISC license; see accompanying file
|
|
|
|
* "COPYING" for details.
|
2011-03-13 21:21:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* "Clonk" is a registered trademark of Matthes Bender, used with permission.
|
|
|
|
* See accompanying file "TRADEMARK" for details.
|
2011-03-13 21:21:16 +00:00
|
|
|
*
|
2013-12-17 20:01:09 +00:00
|
|
|
* To redistribute this file separately, substitute the full license texts
|
|
|
|
* for the above references.
|
2011-03-13 21:21:16 +00:00
|
|
|
*/
|
|
|
|
|
2011-04-02 14:48:54 +00:00
|
|
|
#ifndef INC_C4windowswrapper
|
|
|
|
#define INC_C4windowswrapper
|
|
|
|
|
2011-03-13 14:48:45 +00:00
|
|
|
#include <windows.h>
|
|
|
|
#undef RGB
|
|
|
|
#undef GetRValue
|
|
|
|
#undef GetGValue
|
|
|
|
#undef GetBValue
|
|
|
|
#undef TextOut
|
|
|
|
#undef GetObject
|
|
|
|
#undef CreateFont
|
|
|
|
#undef LoadBitmap
|
|
|
|
#undef DrawText
|
|
|
|
|
2011-04-02 14:48:54 +00:00
|
|
|
// implemented in StdBuf.cpp
|
2016-01-24 05:43:09 +00:00
|
|
|
StdStrBuf::wchar_t_holder GetWideChar(const char * utf8, bool double_null_terminate = false);
|
2011-04-02 14:48:54 +00:00
|
|
|
StdBuf GetWideCharBuf(const char * utf8);
|
|
|
|
|
2011-04-03 13:47:02 +00:00
|
|
|
#define ADDL2(s) L##s
|
|
|
|
#define ADDL(s) ADDL2(s)
|
|
|
|
|
2012-10-28 00:35:29 +00:00
|
|
|
#define GET_X_LPARAM(lp) ((int)(short)LOWORD(lp))
|
|
|
|
#define GET_Y_LPARAM(lp) ((int)(short)HIWORD(lp))
|
|
|
|
|
2011-04-02 14:48:54 +00:00
|
|
|
#endif // INC_C4windowswrapper
|