mirror of
https://github.com/reactos/reactos.git
synced 2025-08-06 03:12:59 +00:00
work around GCC's wide string constant bug when compiling inline functions
svn path=/trunk/; revision=11748
This commit is contained in:
parent
e1e1824939
commit
4e66d23d42
3 changed files with 14 additions and 1 deletions
|
@ -661,7 +661,7 @@ void NotifyArea::Paint()
|
||||||
MemCanvas mem_dc;
|
MemCanvas mem_dc;
|
||||||
SelectedBitmap bmp(mem_dc, CreateCompatibleBitmap(canvas, NOTIFYICON_SIZE, NOTIFYICON_SIZE));
|
SelectedBitmap bmp(mem_dc, CreateCompatibleBitmap(canvas, NOTIFYICON_SIZE, NOTIFYICON_SIZE));
|
||||||
RECT rect = {0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE};
|
RECT rect = {0, 0, NOTIFYICON_SIZE, NOTIFYICON_SIZE};
|
||||||
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0};
|
BLENDFUNCTION blend = {AC_SRC_OVER, 0, 128, 0}; // 50 % visible
|
||||||
|
|
||||||
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
|
for(NotifyIconSet::const_iterator it=_sorted_icons.begin(); it!=_sorted_icons.end(); ++it) {
|
||||||
if (it->_dwState & NIS_HIDDEN) {
|
if (it->_dwState & NIS_HIDDEN) {
|
||||||
|
|
|
@ -36,6 +36,12 @@
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
||||||
|
// work around GCC's wide string constant bug
|
||||||
|
#ifdef __GNUC__
|
||||||
|
const LPCTSTR sCFSTR_SHELLIDLIST = TEXT("Shell IDList Array");
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// helper functions for string copying
|
// helper functions for string copying
|
||||||
|
|
||||||
LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
|
LPSTR strcpyn(LPSTR dest, LPCSTR source, size_t count)
|
||||||
|
|
|
@ -45,6 +45,13 @@ using namespace _com_util;
|
||||||
#endif
|
#endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
// work around GCC's wide string constant bug when compiling inline functions
|
||||||
|
#ifdef __GNUC__
|
||||||
|
extern const LPCTSTR sCFSTR_SHELLIDLIST;
|
||||||
|
#undef CFSTR_SHELLIDLIST
|
||||||
|
#define CFSTR_SHELLIDLIST sCFSTR_SHELLIDLIST
|
||||||
|
#endif
|
||||||
|
|
||||||
|
|
||||||
// Exception Handling
|
// Exception Handling
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue