mirror of
https://github.com/scummvm/scummvm.git
synced 2026-06-20 05:45:29 +00:00
WINTERMUTE: Two minor formatting fixes.
This commit is contained in:
@@ -448,8 +448,8 @@ bool BaseSurfaceOSystem::drawSprite(int x, int y, Rect32 *rect, Rect32 *newRect,
|
||||
bool BaseSurfaceOSystem::putSurface(const Graphics::Surface &surface, bool hasAlpha) {
|
||||
_loaded = true;
|
||||
if (surface.format == _surface->format && surface.w == _surface->w && surface.h == _surface->h) {
|
||||
const byte *src = (const byte*) surface.getBasePtr(0, 0);
|
||||
byte *dst = (byte*) _surface->getBasePtr(0, 0);
|
||||
const byte *src = (const byte *)surface.getBasePtr(0, 0);
|
||||
byte *dst = (byte *)_surface->getBasePtr(0, 0);
|
||||
memcpy(dst, src, surface.pitch * surface.h);
|
||||
} else {
|
||||
_surface->free();
|
||||
|
||||
@@ -306,8 +306,8 @@ bool VideoTheoraPlayer::update() {
|
||||
const Graphics::Surface *decodedFrame = _theoraDecoder->decodeNextFrame();
|
||||
if (decodedFrame) {
|
||||
if (decodedFrame->format == _surface.format && decodedFrame->w == _surface.w && decodedFrame->h == _surface.h) {
|
||||
const byte *src = (const byte*) decodedFrame->getBasePtr(0, 0);
|
||||
byte *dst = (byte*) _surface.getBasePtr(0, 0);
|
||||
const byte *src = (const byte *)decodedFrame->getBasePtr(0, 0);
|
||||
byte *dst = (byte *)_surface.getBasePtr(0, 0);
|
||||
memcpy(dst, src, _surface.pitch * _surface.h);
|
||||
} else {
|
||||
_surface.free();
|
||||
|
||||
Reference in New Issue
Block a user