* Added and implemented B_INVALIDATE as available on Dano; to invalidate only a certain
part of the view, you can add a BRect "be:area" to that message - very handy. * Cleaned up AppDefs.h a bit. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20683 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -962,6 +962,19 @@ FrameMoved(origin);
|
||||
target->MessageReceived(msg);
|
||||
break;
|
||||
|
||||
case B_INVALIDATE:
|
||||
{
|
||||
if (BView* view = dynamic_cast<BView*>(target)) {
|
||||
BRect rect;
|
||||
if (msg->FindRect("be:area", &rect) == B_OK)
|
||||
view->Invalidate(rect);
|
||||
else
|
||||
view->Invalidate();
|
||||
} else
|
||||
target->MessageReceived(msg);
|
||||
break;
|
||||
}
|
||||
|
||||
case B_KEY_DOWN:
|
||||
{
|
||||
if (!_HandleKeyDown(msg)) {
|
||||
|
||||
Reference in New Issue
Block a user