implemented BInputServerFilter::GetScreenRegion. Tested with R5 screen_saver filter successfully.

git-svn-id: file:///srv/svn/repos/haiku/trunk/current@9225 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval
2004-10-06 09:28:36 +00:00
parent e4155d6ff9
commit abc3b04ccf
2 changed files with 9 additions and 5 deletions
+1
View File
@@ -166,6 +166,7 @@ public:
static DeviceManager gDeviceManager; static DeviceManager gDeviceManager;
BRect& ScreenFrame() { return fFrame;};
private: private:
status_t LoadKeymap(); status_t LoadKeymap();
status_t LoadSystemKeymap(); status_t LoadSystemKeymap();
+5 -2
View File
@@ -30,6 +30,7 @@
/*****************************************************************************/ /*****************************************************************************/
#include <Region.h>
#include <InputServerFilter.h> #include <InputServerFilter.h>
#include "InputServer.h" #include "InputServer.h"
@@ -85,9 +86,11 @@ BInputServerFilter::Filter(BMessage *message,
status_t status_t
BInputServerFilter::GetScreenRegion(BRegion *region) const BInputServerFilter::GetScreenRegion(BRegion *region) const
{ {
status_t dummy; if (!region)
return B_BAD_VALUE;
return dummy; *region = BRegion(((InputServer*)be_app)->ScreenFrame());
return B_OK;
} }