Permalink
Browse files

ILLUSIONS: DUCKMAN: Add support for the demo version (#1413)

  • Loading branch information...
ccawley2011 authored and bluegr committed Dec 3, 2018
1 parent b9c6055 commit eea066b89b3279d8a754f3d3da1ac8a190904196
Showing with 14 additions and 1 deletion.
  1. +13 −0 engines/illusions/detection.cpp
  2. +1 −1 engines/illusions/duckman/duckman_videoplayer.cpp
@@ -67,6 +67,19 @@ static const IllusionsGameDescription gameDescriptions[] = {
kGameIdDuckman
},
{
{
"duckman",
"Demo",
AD_ENTRY1s("duckman.gam", "71d01e3f3d9d4e51cd69f71028745610", 7127040),
Common::EN_ANY,
Common::kPlatformWindows,
ADGF_DROPPLATFORM | ADGF_DEMO,
GUIO0()
},
kGameIdDuckman
},
{
{
"duckman",
@@ -69,7 +69,7 @@ void DuckmanVideoPlayer::update() {
} else if (_videoDecoder->needsUpdate()) {
const Graphics::Surface *frame = _videoDecoder->decodeNextFrame();
Graphics::Surface *backSurface = _vm->_screen->getBackSurface();
if (frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
if (frame && frame->format.bytesPerPixel == g_system->getScreenFormat().bytesPerPixel) {
const int width = MIN(frame->w, backSurface->w);
const int height = MIN(frame->h, backSurface->h);
const byte *src = (const byte*)frame->getPixels();

0 comments on commit eea066b

Please sign in to comment.