improve window manager refresh process

This commit is contained in:
Jinhao
2016-04-20 02:07:38 +08:00
parent 3dbe94cd6c
commit c512b2dad5
13 changed files with 98 additions and 76 deletions

View File

@@ -16,7 +16,7 @@
namespace nana
{
//overlap test if overlaped between r1 and r2
bool overlap(const rectangle& r1, const rectangle& r2)
bool overlapped(const rectangle& r1, const rectangle& r2)
{
if (r1.y + (long long)(r1.height) <= r2.y) return false;
if(r1.y >= r2.y + (long long)(r2.height)) return false;
@@ -30,7 +30,7 @@ namespace nana
//overlap, compute the overlap area between r1 and r2. the rect is for root
bool overlap(const rectangle& r1, const rectangle& r2, rectangle& r)
{
if(overlap(r1, r2))
if(overlapped(r1, r2))
{
auto l1 = static_cast<long long>(r1.x) + r1.width;
auto l2 = static_cast<long long>(r2.x) + r2.width;