Performance improvements
This commit is contained in:
@@ -102,7 +102,7 @@ namespace nana
|
||||
{
|
||||
nana::point refpos(1, static_cast<int>(topbar_height) + 1);
|
||||
|
||||
nana::paint::graphics gbuf(width, graph.height() - 2 - topbar_height);
|
||||
nana::paint::graphics gbuf({ width, graph.height() - 2 - topbar_height });
|
||||
gbuf.rectangle(true, {0xf0, 0xf0, 0xf0});
|
||||
|
||||
switch(page_)
|
||||
@@ -599,12 +599,12 @@ namespace nana
|
||||
nana::point refpos(1, static_cast<int>(topbar_height) + 1);
|
||||
nana::rectangle r(0, 0, graph.width() - 2, graph.height() - 2 - topbar_height);
|
||||
|
||||
nana::paint::graphics dirtybuf(r.width, r.height);
|
||||
nana::paint::graphics dirtybuf({ r.width, r.height });
|
||||
dirtybuf.bitblt(r, graph, refpos);
|
||||
|
||||
_m_draw(graph);
|
||||
|
||||
nana::paint::graphics gbuf(r.width, r.height);
|
||||
nana::paint::graphics gbuf({ r.width, r.height });
|
||||
gbuf.bitblt(r, graph, refpos);
|
||||
|
||||
_m_perf_transform(tfid, graph, dirtybuf, gbuf, refpos);
|
||||
|
||||
Reference in New Issue
Block a user