CanControlFrameBuffer() returns false with the vmware driver, but

ParticlesII doesn't need to do special things with it


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@21451 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2007-06-18 12:36:30 +00:00
parent 6a45488dd9
commit d53469036b

View File

@ -93,7 +93,7 @@ void NApplication::ReadyToRun()
NWindowScreen *ws = new NWindowScreen(&ret);
PRINT(("WindowScreen ctor returned. ret = %s\n", strerror(ret)));
// exit if constructing the WindowScreen failed.
if((ws == NULL) || (ret < B_OK) || !ws->CanControlFrameBuffer())
if((ws == NULL) || (ret < B_OK))
{
//printf("the window screen was NULL, or there was an error\n");
PostMessage(B_QUIT_REQUESTED);
@ -171,7 +171,8 @@ void NWindowScreen::ScreenConnected(bool connected)
memset(frame_buffer,0,480*line_length);
// spawn the rendering thread. exit if an error occurs.
PRINT(("spawning the render thread.\n"));
if(resume_thread((tid = spawn_thread(Entry,"rendering thread", B_URGENT_DISPLAY_PRIORITY,this))) < B_OK)
tid = spawn_thread(Entry,"rendering thread", B_URGENT_DISPLAY_PRIORITY,this);
if(resume_thread(tid) < B_OK)
{
be_app->PostMessage(B_QUIT_REQUESTED);
return;
@ -214,7 +215,7 @@ void NWindowScreen::ScreenConnected(bool connected)
}
if((i>=192) && (i<256))
{
c1.red = 0; // blues
c1.red = 0i; // blues
c1.green = 0;
c1.blue = j*4;
c1.alpha = 255;