* Fix build of app_server test environment by implementing atomic_get(),

maybe this should be the assembler version we use for x86, but is probably
  fine for the purpose of the test environment (only BString uses this)
* Fix semantics of DrawingEngine::CopyToFront() which I recently introduced,
  for the fake accelerant of the test environment, we do need to call
  Invalidate(), not CopyBackToFront() directly.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24422 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stephan Aßmus 2008-03-17 14:28:09 +00:00
parent 0cbc783bc0
commit f306ef434f
2 changed files with 9 additions and 1 deletions

View File

@ -35,3 +35,11 @@ fs_unmount_volume(const char *path, uint32 flags)
return B_ERROR;
}
int32
atomic_get(vint32 *value)
{
return *value;
}

View File

@ -190,7 +190,7 @@ DrawingEngine::CopyToFront(/*const*/ BRegion& region)
{
int32 count = region.CountRects();
for (int32 i = 0; i < count; i++)
fGraphicsCard->CopyBackToFront(region.RectAt(i));
fGraphicsCard->Invalidate(region.RectAt(i));
}