[Scummvm-git-logs] scummvm master -> cc2e3db9c58d972d8ff3d734fb409a0e8eb5e192
aquadran
noreply at scummvm.org
Mon Oct 28 18:44:00 UTC 2024
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
cc2e3db9c5 WINTERMUTE: Implement Direct3DDevice and DirectDrawInterface stubs
Commit: cc2e3db9c58d972d8ff3d734fb409a0e8eb5e192
https://github.com/scummvm/scummvm/commit/cc2e3db9c58d972d8ff3d734fb409a0e8eb5e192
Author: PaweÅ KoÅodziejski (aquadran at gmail.com)
Date: 2024-10-28T19:43:55+01:00
Commit Message:
WINTERMUTE: Implement Direct3DDevice and DirectDrawInterface stubs
Changed paths:
engines/wintermute/base/base_game.cpp
diff --git a/engines/wintermute/base/base_game.cpp b/engines/wintermute/base/base_game.cpp
index ea7678b1563..b3a3d50344b 100644
--- a/engines/wintermute/base/base_game.cpp
+++ b/engines/wintermute/base/base_game.cpp
@@ -2695,9 +2695,10 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
// Direct3DDevice
//////////////////////////////////////////////////////////////////////////
else if (name == "Direct3DDevice") {
- warning("BaseGame::scGetProperty Direct3D device is not available");
- _scValue->setNULL();
-
+ if (_gameRef->_useD3D)
+ _scValue->setInt((int)('D3DH'));
+ else
+ _scValue->setNULL();
return _scValue;
}
@@ -2705,9 +2706,10 @@ ScValue *BaseGame::scGetProperty(const Common::String &name) {
// DirectDrawInterface
//////////////////////////////////////////////////////////////////////////
else if (name == "DirectDrawInterface") {
- warning("BaseGame::scGetProperty DirectDraw interface is not available");
- _scValue->setNULL();
-
+ if (!_gameRef->_useD3D)
+ _scValue->setInt((int)('DDIH'));
+ else
+ _scValue->setNULL();
return _scValue;
}
#endif
More information about the Scummvm-git-logs
mailing list