mirror of
https://github.com/libretro/scummvm.git
synced 2025-01-22 01:57:16 +00:00
GNAP: Fix compilation
This commit is contained in:
parent
cb69189a50
commit
c4f5dd0209
3
engines/gnap/configure.engine
Normal file
3
engines/gnap/configure.engine
Normal 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
|
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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());
|
||||
|
Loading…
x
Reference in New Issue
Block a user