mirror of
https://github.com/libretro/scummvm.git
synced 2025-02-02 17:03:13 +00:00
SHERLOCK: Make some fields of CAnimStream private
This commit is contained in:
parent
b5a2b55096
commit
3bee3e78cd
@ -418,11 +418,12 @@ struct CAnim {
|
||||
void load(Common::SeekableReadStream &s, bool isRoseTattoo);
|
||||
};
|
||||
|
||||
struct CAnimStream {
|
||||
class CAnimStream {
|
||||
Common::SeekableReadStream *_stream; // Stream to read frames from
|
||||
int _frameSize; // Temporary used to store the frame size
|
||||
|
||||
void *_images; // TOOD: FIgure out hwo to hook up ImageFile with streaming support
|
||||
public:
|
||||
ImageFrame *_imageFrame;
|
||||
|
||||
Common::Point _position; // Animation position
|
||||
@ -432,7 +433,7 @@ struct CAnimStream {
|
||||
int _flags; // Flags
|
||||
int _scaleVal; // Specifies the scale amount
|
||||
int _zPlacement; // Used by doBgAnim for determining Z order
|
||||
|
||||
public:
|
||||
CAnimStream();
|
||||
|
||||
void getNextFrame();
|
||||
|
@ -211,7 +211,7 @@ void TattooScene::checkBgShapes() {
|
||||
Scene::checkBgShapes();
|
||||
|
||||
// Check for any active playing animation
|
||||
if (_activeCAnim._images && _activeCAnim._zPlacement != REMOVE) {
|
||||
if (_activeCAnim._imageFrame && _activeCAnim._zPlacement != REMOVE) {
|
||||
switch (_activeCAnim._flags & 3) {
|
||||
case 0:
|
||||
_activeCAnim._zPlacement = BEHIND;
|
||||
@ -427,7 +427,7 @@ void TattooScene::doBgAnimUpdateBgObjectsAndAnim() {
|
||||
people[idx].adjustSprite();
|
||||
}
|
||||
|
||||
if ((_activeCAnim._images != nullptr) && (_activeCAnim._zPlacement != REMOVE)) {
|
||||
if (_activeCAnim._imageFrame != nullptr && _activeCAnim._zPlacement != REMOVE) {
|
||||
_activeCAnim.getNextFrame();
|
||||
}
|
||||
|
||||
@ -644,7 +644,7 @@ void TattooScene::doBgAnimDrawSprites() {
|
||||
}
|
||||
}
|
||||
|
||||
if (_activeCAnim._images != nullptr || _activeCAnim._zPlacement == REMOVE) {
|
||||
if (_activeCAnim._imageFrame != nullptr || _activeCAnim._zPlacement == REMOVE) {
|
||||
if (_activeCAnim._zPlacement != REMOVE) {
|
||||
screen.flushImage(_activeCAnim._imageFrame, _activeCAnim._position, _activeCAnim._oldBounds, _activeCAnim._scaleVal);
|
||||
} else {
|
||||
|
@ -169,7 +169,7 @@ void TattooUserInterface::doBgAnimRestoreUI() {
|
||||
_oldInvGraphicBounds);
|
||||
|
||||
// If a canimation is active, restore the graphics underneath it
|
||||
if (scene._activeCAnim._images != nullptr)
|
||||
if (scene._activeCAnim._imageFrame != nullptr)
|
||||
screen.restoreBackground(scene._activeCAnim._oldBounds);
|
||||
|
||||
// If a canimation just ended, remove it's graphics from the backbuffer
|
||||
|
Loading…
x
Reference in New Issue
Block a user