X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FVideoUpdate.cpp;h=b121c19ffc79893b8281e41c07cc357645d5e118;hb=99696df8d39203e11a458cf820b498820107dd76;hp=1d66b9cc39461de4c26f38eaee734301ffd11aaa;hpb=887e744e425c6c25fcfdbad863d3c9287ad91d93;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/VideoUpdate.cpp b/ABM2/Engine/VideoUpdate.cpp index 1d66b9c..b121c19 100755 --- a/ABM2/Engine/VideoUpdate.cpp +++ b/ABM2/Engine/VideoUpdate.cpp @@ -7,27 +7,17 @@ #include "VideoUpdate.h" -// include the Direct3D Library file -#ifdef WIN32 -#pragma comment (lib, "d3d9.lib") -#pragma comment (lib, "d3dx9.lib") - -////////////////////////////////////////////////////////////////////// -// Construction/Destruction -////////////////////////////////////////////////////////////////////// -LPDIRECT3DDEVICE9 d3ddev; // the pointer to the device class -#endif //WIN32 CMMPointer > CVideoUpdate::screenWidth=0; CMMPointer > CVideoUpdate::screenHeight=0; CMMPointer > CVideoUpdate::screenBPP=0; int CVideoUpdate::scrWidth=640; int CVideoUpdate::scrHeight=480; -int CVideoUpdate::scrBPP=16; +int CVideoUpdate::scrBPP=24; -CVideoUpdate::CVideoUpdate() +CVideoUpdate::CVideoUpdate(CKernel* kernel) : ITask(kernel) { assert(screenWidth && screenHeight && screenBPP); - this->g = new Graphics(scrWidth, scrHeight, 16, false); + this->g = new Graphics(scrWidth, scrHeight, scrBPP, false); } CVideoUpdate::~CVideoUpdate()