[Scummvm-git-logs] scummvm master -> 67b3afc85381affeb45fc2d059986fcbfb9c12fe
bluegr
noreply at scummvm.org
Wed Jan 8 07:13:48 UTC 2025
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
67b3afc853 MEDIASTATION: Make use of simpleBlitFrom
Commit: 67b3afc85381affeb45fc2d059986fcbfb9c12fe
https://github.com/scummvm/scummvm/commit/67b3afc85381affeb45fc2d059986fcbfb9c12fe
Author: Cameron Cawley (ccawley2011 at gmail.com)
Date: 2025-01-08T09:13:44+02:00
Commit Message:
MEDIASTATION: Make use of simpleBlitFrom
Changed paths:
engines/mediastation/assets/movie.cpp
engines/mediastation/assets/sprite.cpp
engines/mediastation/bitmap.cpp
diff --git a/engines/mediastation/assets/movie.cpp b/engines/mediastation/assets/movie.cpp
index 677c1a84bb9..7980cb5a2e2 100644
--- a/engines/mediastation/assets/movie.cpp
+++ b/engines/mediastation/assets/movie.cpp
@@ -287,7 +287,7 @@ bool Movie::drawNextFrame() {
return a->zCoordinate() > b->zCoordinate();
});
for (MovieFrame *frame : framesToDraw) {
- g_engine->_screen->transBlitFrom(frame->_surface, Common::Point(frame->left(), frame->top()), 0, false);
+ g_engine->_screen->simpleBlitFrom(frame->_surface, Common::Point(frame->left(), frame->top()));
}
uint blitEnd = g_system->getMillis() - _startTime;
@@ -439,4 +439,4 @@ void Movie::readSubfile(Subfile &subfile, Chunk &chunk) {
// TODO: We donʻt do anything with this yet!
}
-} // End of namespace MediaStation
\ No newline at end of file
+} // End of namespace MediaStation
diff --git a/engines/mediastation/assets/sprite.cpp b/engines/mediastation/assets/sprite.cpp
index e0756fa8ccc..e6c1bee444a 100644
--- a/engines/mediastation/assets/sprite.cpp
+++ b/engines/mediastation/assets/sprite.cpp
@@ -208,7 +208,7 @@ void Sprite::drawFrame(SpriteFrame *frame) {
uint frameLeft = frame->left() + _header->_boundingBox->left;
uint frameTop = frame->top() + _header->_boundingBox->top;
debugC(5, kDebugGraphics, " Sprite frame %d (%d x %d) @ (%d, %d)", frame->index(), frame->width(), frame->height(), frameLeft, frameTop);
- g_engine->_screen->transBlitFrom(frame->_surface, Common::Point(frameLeft, frameTop), 0, false);
+ g_engine->_screen->simpleBlitFrom(frame->_surface, Common::Point(frameLeft, frameTop));
}
-} // End of namespace MediaStation
\ No newline at end of file
+} // End of namespace MediaStation
diff --git a/engines/mediastation/bitmap.cpp b/engines/mediastation/bitmap.cpp
index bdd4b24ae49..8a43ff7232a 100644
--- a/engines/mediastation/bitmap.cpp
+++ b/engines/mediastation/bitmap.cpp
@@ -53,6 +53,7 @@ Bitmap::Bitmap(Chunk &chunk, BitmapHeader *bitmapHeader) :
uint16 width = _bitmapHeader->_dimensions->x;
uint16 height = _bitmapHeader->_dimensions->y;
_surface.create(width, height, Graphics::PixelFormat::createFormatCLUT8());
+ _surface.setTransparentColor(0);
uint8 *pixels = (uint8 *)_surface.getPixels();
if (_bitmapHeader->isCompressed()) {
// DECOMPRESS THE IMAGE.
More information about the Scummvm-git-logs
mailing list