From d53469036b24318696352ddf329779083ec76aa7 Mon Sep 17 00:00:00 2001 From: Stefano Ceccherini Date: Mon, 18 Jun 2007 12:36:30 +0000 Subject: [PATCH] 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 --- src/tests/kits/game/ParticlesII/particlesII.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tests/kits/game/ParticlesII/particlesII.cpp b/src/tests/kits/game/ParticlesII/particlesII.cpp index 1489af9539..a40fec99ce 100644 --- a/src/tests/kits/game/ParticlesII/particlesII.cpp +++ b/src/tests/kits/game/ParticlesII/particlesII.cpp @@ -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;