BLADERUNNER: Fixed typo in pixelFormat name

This commit is contained in:
Peter Kohaut 2019-04-17 23:08:35 +02:00
parent e86ee33999
commit 036f2221f8
10 changed files with 12 additions and 12 deletions

View File

@ -302,7 +302,7 @@ void BladeRunnerEngine::pauseEngineIntern(bool pause) {
}
Common::Error BladeRunnerEngine::run() {
Graphics::PixelFormat format = screenPixelForrmat();
Graphics::PixelFormat format = screenPixelFormat();
initGraphics(640, 480, &format);
_system->showMouse(true);
@ -375,8 +375,8 @@ bool BladeRunnerEngine::startup(bool hasSavegames) {
// This is the original startup in the game
_surfaceFront.create(640, 480, screenPixelForrmat());
_surfaceBack.create(640, 480, screenPixelForrmat());
_surfaceFront.create(640, 480, screenPixelFormat());
_surfaceBack.create(640, 480, screenPixelFormat());
_time = new Time(this);

View File

@ -312,7 +312,7 @@ static inline const Graphics::PixelFormat gameDataPixelFormat() {
return Graphics::PixelFormat(2, 5, 5, 5, 1, 10, 5, 0, 15);
}
static inline const Graphics::PixelFormat screenPixelForrmat() {
static inline const Graphics::PixelFormat screenPixelFormat() {
// Should be a format supported by Android port
return Graphics::PixelFormat(2, 5, 5, 5, 1, 11, 6, 1, 0);
}

View File

@ -157,7 +157,7 @@ void Font::reset() {
_screenHeight = 0;
_spacing1 = 0;
_spacing2 = 0;
_color = screenPixelForrmat().RGBToColor(255, 255, 255);
_color = screenPixelFormat().RGBToColor(255, 255, 255);
_intersperse = 0;
memset(_characters, 0, 256 * sizeof(Character));

View File

@ -74,7 +74,7 @@ bool Image::open(const Common::String &name) {
}
_surface.init(width, height, 2*width, data, gameDataPixelFormat());
_surface.convertToInPlace(screenPixelForrmat());
_surface.convertToInPlace(screenPixelFormat());
delete[] buf;
delete stream;

View File

@ -35,7 +35,7 @@ namespace BladeRunner {
OuttakePlayer::OuttakePlayer(BladeRunnerEngine *vm) {
_vm = vm;
_surfaceVideo.create(_vm->_surfaceBack.w, _vm->_surfaceBack.h, screenPixelForrmat());
_surfaceVideo.create(_vm->_surfaceBack.w, _vm->_surfaceBack.h, screenPixelFormat());
}
OuttakePlayer::~OuttakePlayer() {

View File

@ -144,7 +144,7 @@ bool SaveFileManager::readHeader(Common::SeekableReadStream &in, SaveFileHeader
s.read(thumbnailData, kThumbnailSize);
header._thumbnail->init(80, 60, 160, thumbnailData, gameDataPixelFormat());
header._thumbnail->convertToInPlace(screenPixelForrmat());
header._thumbnail->convertToInPlace(screenPixelFormat());
s.seek(pos);
}

View File

@ -57,7 +57,7 @@ bool SliceAnimations::open(const Common::String &name) {
_palettes[i].color[j].b = color_b;
const int bladeToScummVmConstant = 256 / 32; // 5 bits to 8 bits
uint16 rgb555 = screenPixelForrmat().RGBToColor(color_r * bladeToScummVmConstant, color_g * bladeToScummVmConstant, color_b * bladeToScummVmConstant);
uint16 rgb555 = screenPixelFormat().RGBToColor(color_r * bladeToScummVmConstant, color_g * bladeToScummVmConstant, color_b * bladeToScummVmConstant);
_palettes[i].color555[j] = rgb555;
}
}

View File

@ -36,7 +36,7 @@ namespace BladeRunner {
SliceRenderer::SliceRenderer(BladeRunnerEngine *vm) {
_vm = vm;
_pixelFormat = screenPixelForrmat();
_pixelFormat = screenPixelFormat();
for (int i = 0; i < 942; i++) { // yes, its going just to 942 and not 997
_animationsShadowEnabled[i] = true;

View File

@ -97,7 +97,7 @@ void ESPER::open(Graphics::Surface *surface) {
_surfacePhoto.create(kPhotoWidth, kPhotoHeight, gameDataPixelFormat());
_surfaceViewport.create(_screen.width(), _screen.height(), screenPixelForrmat());
_surfaceViewport.create(_screen.width(), _screen.height(), screenPixelFormat());
_viewportNext = _viewport;

View File

@ -115,7 +115,7 @@ void VK::open(int actorId, int calibrationRatio) {
return;
}
_surfaceEye.create(172, 116, screenPixelForrmat());
_surfaceEye.create(172, 116, screenPixelFormat());
_vqaPlayerEye = new VQAPlayer(_vm, &_surfaceEye, eyeVqa);
if (!_vqaPlayerEye->open()) {
return;