mirror of
https://github.com/libretro/scummvm.git
synced 2025-03-05 01:38:36 +00:00
BLADERUNNER: Fixed typo in pixelFormat name
This commit is contained in:
parent
e86ee33999
commit
036f2221f8
@ -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);
|
||||
|
||||
|
@ -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);
|
||||
}
|
||||
|
@ -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));
|
||||
|
@ -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;
|
||||
|
@ -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() {
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
|
@ -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;
|
||||
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user