Choose headers according to DISPLAYDRIVER, too.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@12146 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Michael Lotz 2005-03-29 23:00:58 +00:00
parent 0cabce17c3
commit 73fc67136c

View File

@ -41,12 +41,15 @@
#include "WinBorder.h" #include "WinBorder.h"
#include "Workspace.h" #include "Workspace.h"
#if DISPLAYDRIVER == HWDRIVER
#include "AccelerantDriver.h" #include "AccelerantDriver.h"
#ifndef __HAIKU__ #elif DISPLAYDRIVER == DIRECTDRIVER
#include "ViewDriver.h"
#include "DirectDriver.h" #include "DirectDriver.h"
#elif DISPLAYDRIVER == PAINTERDRIVER
#include "DisplayDriverPainter.h" #include "DisplayDriverPainter.h"
#endif // __HAIKU__ #else
#include "ViewDriver.h"
#endif
//#define DEBUG_DESKTOP //#define DEBUG_DESKTOP
@ -127,7 +130,8 @@ Desktop::AddDriver(DisplayDriver *driver)
{ {
if (driver->Initialize()) { if (driver->Initialize()) {
// TODO: be careful of screen initialization - monitor may not support 640x480 // TODO: be careful of screen initialization - monitor may not support 640x480
Screen *sc = new Screen(driver, BPoint(640, 480), B_RGB32, fScreenList.CountItems()+1); Screen *sc = new Screen(driver, BPoint(1280, 1024), B_RGB32, fScreenList.CountItems()+1);
// Screen *sc = new Screen(driver, BPoint(640, 480), B_RGB32, fScreenList.CountItems()+1);
// Screen *sc = new Screen(driver, BPoint(1024, 768), B_RGB32, fScreenList.CountItems()+1); // Screen *sc = new Screen(driver, BPoint(1024, 768), B_RGB32, fScreenList.CountItems()+1);
// Screen *sc = new Screen(driver, BPoint(640, 480), B_CMAP8, fScreenList.CountItems()+1); // Screen *sc = new Screen(driver, BPoint(640, 480), B_CMAP8, fScreenList.CountItems()+1);
// Screen *sc = new Screen(driver, BPoint(640, 480), B_GRAY8, fScreenList.CountItems()+1); // Screen *sc = new Screen(driver, BPoint(640, 480), B_GRAY8, fScreenList.CountItems()+1);