This commit is contained in:
parent
f23a466d33
commit
f2de281e20
2 changed files with 5 additions and 0 deletions
|
|
@ -67,6 +67,7 @@
|
||||||
#include <View.h>
|
#include <View.h>
|
||||||
#include <Screen.h>
|
#include <Screen.h>
|
||||||
#include <Application.h>
|
#include <Application.h>
|
||||||
|
#include <Locker.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,8 @@ void MwApplication::ReadyToRun(){
|
||||||
}
|
}
|
||||||
|
|
||||||
void MwApplication::Pulse(){
|
void MwApplication::Pulse(){
|
||||||
|
this->locker->Lock();
|
||||||
|
this->locker->Unlock();
|
||||||
}
|
}
|
||||||
|
|
||||||
MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/milsko-generic") {
|
MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/milsko-generic") {
|
||||||
|
|
@ -22,12 +24,14 @@ MwApplication::MwApplication(BRect rc, MwLL handle) : BApplication("application/
|
||||||
handle->haiku.view = new BView(this->window->Bounds(), NULL, B_FOLLOW_ALL_SIDES, B_WILL_DRAW);
|
handle->haiku.view = new BView(this->window->Bounds(), NULL, B_FOLLOW_ALL_SIDES, B_WILL_DRAW);
|
||||||
|
|
||||||
this->ready = 0;
|
this->ready = 0;
|
||||||
|
this->locker = new BLocker();
|
||||||
|
|
||||||
delete scr;
|
delete scr;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwApplication::~MwApplication(){
|
MwApplication::~MwApplication(){
|
||||||
delete this->window;
|
delete this->window;
|
||||||
|
delete this->locker;
|
||||||
}
|
}
|
||||||
|
|
||||||
MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
MwLL MwLLCreateImpl(MwLL parent, int x, int y, int width, int height) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue