From 027f6a768cb930964612064032c2a3206abf2fd0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Sun, 8 Apr 2007 17:37:22 +0000 Subject: [PATCH] * export SetDiskMode() symbol, thanks to "aldeck" for providing the BeBook link, fixes ticket #1140 git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20617 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/kits/interface/View.cpp | 24 ++++++++++++++++++------ 1 file changed, 18 insertions(+), 6 deletions(-) diff --git a/src/kits/interface/View.cpp b/src/kits/interface/View.cpp index bca0bd83a3..45c8f81a55 100644 --- a/src/kits/interface/View.cpp +++ b/src/kits/interface/View.cpp @@ -1132,6 +1132,11 @@ void BView::DrawAfterChildren(BRect r) { // HOOK function + + // NOTE: DrawAfterChildren is called if the corresponding + // flag is set, but it will currently not work as expected, + // since the app_server does not allow views to draw *on* + // their children STRACE(("\tHOOK: BView(%s)::DrawAfterChildren()\n", Name())); } @@ -3048,7 +3053,19 @@ BView::EndLineArray() void -BView::BeginPicture(BPicture *picture) +BView::SetDiskMode(char* filename, long offset) +{ + // TODO: implement + // One BeBook version has this to say about SetDiskMode(): + // + // "Begins recording a picture to the file with the given filename + // at the given offset. Subsequent drawing commands sent to the view + // will be written to the file until EndPicture() is called. The + // stored commands may be played from the file with DrawPicture()." +} + + +void BView::BeginPicture(BPicture *picture) { if (do_owner_check() && picture && picture->usurped == NULL) { picture->usurp(cpicture); @@ -4949,8 +4966,3 @@ BView::PrintTree() } -/* TODO: - -implement SetDiskMode(). What's with this method? What does it do? test! - does it has something to do with DrawPictureAsync( filename* .. )? - -implement DrawAfterChildren() -*/