git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Usermode/axwin4 - Continuing
[tpg/acess2.git]
/
Usermode
/
Applications
/
axwin4_src
/
Server
/
compositor.cpp
diff --git
a/Usermode/Applications/axwin4_src/Server/compositor.cpp
b/Usermode/Applications/axwin4_src/Server/compositor.cpp
index
9306e41
..
61d42e3
100644
(file)
--- a/
Usermode/Applications/axwin4_src/Server/compositor.cpp
+++ b/
Usermode/Applications/axwin4_src/Server/compositor.cpp
@@
-34,6
+34,7
@@
void CCompositor::Redraw()
// For all windows, check for intersection with damage rects
for( auto rect : m_damageRects )
{
// For all windows, check for intersection with damage rects
for( auto rect : m_damageRects )
{
+ // window list should be sorted by draw order (lowest first)
for( auto window : m_windows )
{
if( rect.HasIntersection( window->m_surface.m_rect ) )
for( auto window : m_windows )
{
if( rect.HasIntersection( window->m_surface.m_rect ) )
@@
-44,6
+45,8
@@
void CCompositor::Redraw()
//window->Repaint( rel_rect );
}
}
//window->Repaint( rel_rect );
}
}
+
+ // TODO: Blit from windows to a local surface, then blit from there to screen here
}
m_damageRects.clear();
}
m_damageRects.clear();
@@
-51,6
+54,7
@@
void CCompositor::Redraw()
void CCompositor::DamageArea(const CRect& area)
{
void CCompositor::DamageArea(const CRect& area)
{
+ m_damageRects.push_back( area );
// 1. Locate intersection with any existing damaged areas
// 2. Append after removing intersections
}
// 1. Locate intersection with any existing damaged areas
// 2. Append after removing intersections
}
UCC
git Repository :: git.ucc.asn.au