fixed a bground effect refresh issue.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user