X-Git-Url: https://git.stderr.nl/gitweb?a=blobdiff_plain;f=ABM2%2FEngine%2FVideoUpdate.cpp;h=14f60440f6f99518e7efe50a83a3c6da6e5e854f;hb=6332ae522f34b2811b62b83e9a44545f0c72cba3;hp=8499568c1e00ebbe9964c9b89e06481f6f0c98ea;hpb=0b314338a46fe83c1c4bb646da858ebd5d4a7317;p=matthijs%2FABM2.git diff --git a/ABM2/Engine/VideoUpdate.cpp b/ABM2/Engine/VideoUpdate.cpp index 8499568..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); @@ -113,3 +115,4 @@ void CVideoUpdate::Stop() { // SDL_QuitSubSystem(SDL_INIT_VIDEO); } +#endif // WIN32