fixed linux support.

This commit is contained in:
dankan1890
2016-11-02 09:33:18 +01:00
parent 043ebad317
commit f9e06c04e2
4 changed files with 32 additions and 29 deletions

View File

@@ -457,7 +457,7 @@ namespace nana{ namespace paint
HDC context = drawable->context;
HBITMAP pixmap = drawable->pixmap;
HBITMAP orig_bmp;
HBITMAP orig_bmp = pixmap;
if(need_dup)
{
context = ::CreateCompatibleDC(drawable->context);
@@ -795,7 +795,7 @@ namespace nana{ namespace paint
std::unique_ptr<unsigned char[]> autoptr;
auto rgb_color = clr.px_color().value;
nana::pixel_color_t rgb_imd;
nana::pixel_color_t rgb_imd = { 0 };
if(fade)
{
autoptr = detail::alloc_fade_table(1 - fade_rate);