GNAP: Fix compilation

This commit is contained in:
Strangerke 2016-03-21 07:49:38 +01:00 committed by Eugene Sandulenko
parent cb69189a50
commit c4f5dd0209
3 changed files with 6 additions and 3 deletions

View File

@ -0,0 +1,3 @@
# This file is included from the main "configure" script
# add_engine [name] [desc] [build-by-default] [subengines] [base games] [deps]
add_engine gnap "UFOs" no

View File

@ -54,7 +54,7 @@ static const ADGameDescription gameDescriptions[] = {
class GnapMetaEngine : public AdvancedMetaEngine {
public:
GnapMetaEngine() : AdvancedMetaEngine(Gnap::gameDescriptions, sizeof(ADGameDescription), gnapGames) {
_singleid = "gnap";
_singleId = "gnap";
_maxScanDepth = 3;
}

View File

@ -24,7 +24,7 @@
#include "gnap/fontdata.h"
#include "graphics/fontman.h"
#include "graphics/font.h"
#include "graphics/decoders/bmp.h"
#include "image/bmp.h"
namespace Gnap {
@ -365,7 +365,7 @@ Graphics::Surface *GameSys::loadBitmap(int resourceId) {
uint32 resourceSize = _vm->_dat->getResourceSize(resourceId);
Common::MemoryReadStream stream(resourceData, resourceSize, DisposeAfterUse::NO);
Graphics::Surface *bmpSurface;
Graphics::BitmapDecoder bmp;
Image::BitmapDecoder bmp;
if (!bmp.loadStream(stream))
error("GameSys::loadBitmap() Could not load bitmap resource %08X", resourceId);
bmpSurface = bmp.getSurface()->convertTo(_vm->_system->getScreenFormat());