Merge branch 'develop' of https://github.com/loaden/nana into loaden-develop
This commit is contained in:
commit
a25e116e32
1
.gitignore
vendored
1
.gitignore
vendored
@ -8,6 +8,7 @@ bii/deps/*
|
|||||||
build/vc2013-bkl/*
|
build/vc2013-bkl/*
|
||||||
build/makefile-bkl/*
|
build/makefile-bkl/*
|
||||||
build/compile_commands.json
|
build/compile_commands.json
|
||||||
|
build/install_manifest.txt
|
||||||
*.obj
|
*.obj
|
||||||
*.exe
|
*.exe
|
||||||
*.pdb
|
*.pdb
|
||||||
|
@ -208,20 +208,20 @@ namespace nana{ namespace system{
|
|||||||
memcpy(addr, buf, size);
|
memcpy(addr, buf, size);
|
||||||
::GlobalUnlock(g);
|
::GlobalUnlock(g);
|
||||||
|
|
||||||
unsigned data_format;
|
unsigned data_format = CF_MAX;
|
||||||
switch(fmt)
|
switch(fmt)
|
||||||
{
|
{
|
||||||
case format::text: data_format = CF_UNICODETEXT; break;
|
case format::text: data_format = CF_UNICODETEXT; break;
|
||||||
case format::pixmap: data_format = CF_BITMAP; break;
|
case format::pixmap: data_format = CF_BITMAP; break;
|
||||||
}
|
}
|
||||||
|
|
||||||
res = (nullptr != ::SetClipboardData(data_format, g));
|
res = (nullptr != ::SetClipboardData(data_format, g));
|
||||||
}
|
}
|
||||||
::CloseClipboard();
|
::CloseClipboard();
|
||||||
}
|
}
|
||||||
#elif defined(NANA_X11)
|
#elif defined(NANA_X11)
|
||||||
auto & spec = ::nana::detail::platform_spec::instance();
|
auto & spec = ::nana::detail::platform_spec::instance();
|
||||||
|
|
||||||
Atom atom_type;
|
Atom atom_type;
|
||||||
switch(fmt)
|
switch(fmt)
|
||||||
{
|
{
|
||||||
@ -232,7 +232,7 @@ namespace nana{ namespace system{
|
|||||||
|
|
||||||
spec.write_selection(owner, atom_type, buf, size);
|
spec.write_selection(owner, atom_type, buf, size);
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
@ -244,7 +244,7 @@ namespace nana{ namespace system{
|
|||||||
#if defined(NANA_WINDOWS)
|
#if defined(NANA_WINDOWS)
|
||||||
if(::OpenClipboard(::GetFocus()))
|
if(::OpenClipboard(::GetFocus()))
|
||||||
{
|
{
|
||||||
unsigned data_format;
|
unsigned data_format = CF_MAX;
|
||||||
switch(fmt)
|
switch(fmt)
|
||||||
{
|
{
|
||||||
case format::text: data_format = CF_UNICODETEXT; break;
|
case format::text: data_format = CF_UNICODETEXT; break;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user