aboutsummaryrefslogtreecommitdiff
path: root/engines/sci/graphics
diff options
context:
space:
mode:
Diffstat (limited to 'engines/sci/graphics')
-rw-r--r--engines/sci/graphics/frameout.cpp1
-rw-r--r--engines/sci/graphics/gui32.cpp29
-rw-r--r--engines/sci/graphics/gui32.h7
3 files changed, 2 insertions, 35 deletions
diff --git a/engines/sci/graphics/frameout.cpp b/engines/sci/graphics/frameout.cpp
index e9ee25946c..ad05918c5e 100644
--- a/engines/sci/graphics/frameout.cpp
+++ b/engines/sci/graphics/frameout.cpp
@@ -265,6 +265,7 @@ void GfxFrameout::kernelFrameout() {
}
}
free(itemData);
+ _screen->copyToScreen();
}
} // End of namespace Sci
diff --git a/engines/sci/graphics/gui32.cpp b/engines/sci/graphics/gui32.cpp
index 9b9f2fc648..f8c54c0fe4 100644
--- a/engines/sci/graphics/gui32.cpp
+++ b/engines/sci/graphics/gui32.cpp
@@ -52,6 +52,7 @@ SciGui32::SciGui32(EngineState *state, GfxScreen *screen, GfxPalette *palette, G
_paint32 = new GfxPaint32(_s->resMan, _s->_segMan, _s->_kernel, _cache, _screen, _palette);
_s->_gfxPaint = _paint32;
_frameout = new GfxFrameout(_s->_segMan, _s->resMan, _cache, _screen, _palette, _paint32);
+ _s->_gfxFrameout = _frameout;
}
SciGui32::~SciGui32() {
@@ -204,34 +205,6 @@ void SciGui32::moveCursor(Common::Point pos) {
void SciGui32::setCursorZone(Common::Rect zone) {
_cursor->setMoveZone(zone);
}
-void SciGui32::addScreenItem(reg_t object) {
- _frameout->kernelAddScreenItem(object);
-}
-
-void SciGui32::deleteScreenItem(reg_t object) {
- _frameout->kernelDeleteScreenItem(object);
-}
-
-void SciGui32::addPlane(reg_t object) {
- _frameout->kernelAddPlane(object);
-}
-
-void SciGui32::updatePlane(reg_t object) {
- _frameout->kernelUpdatePlane(object);
-}
-
-void SciGui32::deletePlane(reg_t object) {
- _frameout->kernelDeletePlane(object);
-}
-
-int16 SciGui32::getHighPlanePri() {
- return _frameout->kernelGetHighPlanePri();
-}
-
-void SciGui32::frameOut() {
- _frameout->kernelFrameout();
- _screen->copyToScreen();
-}
void SciGui32::drawRobot(GuiResourceId robotId) {
Robot *test = new Robot(_s->resMan, _screen, robotId);
diff --git a/engines/sci/graphics/gui32.h b/engines/sci/graphics/gui32.h
index bb1aa38107..615c0ea5e8 100644
--- a/engines/sci/graphics/gui32.h
+++ b/engines/sci/graphics/gui32.h
@@ -59,13 +59,6 @@ public:
void moveCursor(Common::Point pos);
void setCursorZone(Common::Rect zone);
- void addScreenItem(reg_t object);
- void deleteScreenItem(reg_t object);
- void addPlane(reg_t object);
- void updatePlane(reg_t object);
- void deletePlane(reg_t object);
- int16 getHighPlanePri();
- void frameOut();
void globalToLocal(int16 *x, int16 *y, reg_t planeObj);
void localToGlobal(int16 *x, int16 *y, reg_t planeObj);