fixed a bground effect refresh issue.

This commit is contained in:
cnjinhao
2015-01-29 03:26:35 +08:00
parent a802083feb
commit e0259e6254
5 changed files with 34 additions and 17 deletions

View File

@@ -163,7 +163,8 @@ namespace detail
bool dropable :1; //Whether the window has make mouse_drop event.
bool fullscreen :1; //When the window is maximizing whether it fit for fullscreen.
bool borderless :1;
unsigned Reserved :22;
bool make_bground_declared : 1; //explicitly make bground for bground effects
unsigned Reserved :21;
unsigned char tab; //indicate a window that can receive the keyboard TAB
mouse_action action;
}flags;
@@ -175,7 +176,7 @@ namespace detail
general_events* attached_events;
}together;
widget_colors* expr_colors{ nullptr };
widget_colors* scheme{ nullptr };
struct
{

View File

@@ -119,12 +119,12 @@ namespace nana{
good_r.x = good_r.y = 1;
good_r.width = r.width - 2;
good_r.height = r.height - 2;
pixbuf.rectangle(good_r, wd->expr_colors->activated.get_color(), 0.95, false);
pixbuf.rectangle(good_r, wd->scheme->activated.get_color(), 0.95, false);
good_r.x = good_r.y = 0;
good_r.width = r.width;
good_r.height = r.height;
pixbuf.rectangle(good_r, wd->expr_colors->activated.get_color(), 0.4, false);
pixbuf.rectangle(good_r, wd->scheme->activated.get_color(), 0.4, false);
pixbuf.pixel(0, 0, px0);
pixbuf.pixel(r.width - 1, 0, px1);