From f306ef434f1676b273fc9c04b6554204bb7f1a79 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Mon, 17 Mar 2008 14:28:09 +0000 Subject: [PATCH] * 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 --- src/build/libhaikucompat/misc.cpp | 8 ++++++++ src/servers/app/drawing/DrawingEngine.cpp | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/src/build/libhaikucompat/misc.cpp b/src/build/libhaikucompat/misc.cpp index 48253ff69c..56d609310a 100644 --- a/src/build/libhaikucompat/misc.cpp +++ b/src/build/libhaikucompat/misc.cpp @@ -35,3 +35,11 @@ fs_unmount_volume(const char *path, uint32 flags) return B_ERROR; } + +int32 +atomic_get(vint32 *value) +{ + return *value; +} + + diff --git a/src/servers/app/drawing/DrawingEngine.cpp b/src/servers/app/drawing/DrawingEngine.cpp index ef5c544ec0..4514df2efa 100644 --- a/src/servers/app/drawing/DrawingEngine.cpp +++ b/src/servers/app/drawing/DrawingEngine.cpp @@ -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)); }