X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FVideoUpdate.cpp;h=14f60440f6f99518e7efe50a83a3c6da6e5e854f;hb=6332ae522f34b2811b62b83e9a44545f0c72cba3;hp=25136cba01fcbdc21f9fb356598af1c417686f82;hpb=0835c5605c80efd286ccb7eff92fffc07689f359;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/VideoUpdate.cpp b/ABM2/Engine/VideoUpdate.cpp index 25136cb..14f6044 100755 --- a/ABM2/Engine/VideoUpdate.cpp +++ b/ABM2/Engine/VideoUpdate.cpp @@ -7,6 +7,7 @@ #include "VideoUpdate.h" // include the Direct3D Library file +#ifdef WIN32 #pragma comment (lib, "d3d9.lib") #pragma comment (lib, "d3dx9.lib") @@ -14,7 +15,7 @@ // Construction/Destruction ////////////////////////////////////////////////////////////////////// LPDIRECT3DDEVICE9 d3ddev; // the pointer to the device class - +#endif //WIN32 CMMPointer > CVideoUpdate::screenWidth=0; CMMPointer > CVideoUpdate::screenHeight=0; CMMPointer > CVideoUpdate::screenBPP=0; @@ -22,6 +23,7 @@ int CVideoUpdate::scrWidth=640; int CVideoUpdate::scrHeight=480; int CVideoUpdate::scrBPP=16; +#ifdef WIN32 CVideoUpdate::CVideoUpdate() { d3d = Direct3DCreate9(D3D_SDK_VERSION); @@ -112,4 +114,5 @@ void CVideoUpdate::Update() void CVideoUpdate::Stop() { // SDL_QuitSubSystem(SDL_INIT_VIDEO); -} \ No newline at end of file +} +#endif // WIN32