aboutsummaryrefslogtreecommitdiff
path: root/engines/cryo/cryolib.cpp
diff options
context:
space:
mode:
authorStrangerke2017-02-02 00:31:48 +0100
committerStrangerke2017-02-02 00:31:48 +0100
commit6c139b7afbdf280aced5b7b3ec30cd8703fa0b8e (patch)
tree5b6f7849f86526cf7d2f08384f08d439a71ccba3 /engines/cryo/cryolib.cpp
parentdfa605b6b414c931bc23d26bdb117874e7b75662 (diff)
downloadscummvm-rg350-6c139b7afbdf280aced5b7b3ec30cd8703fa0b8e.tar.gz
scummvm-rg350-6c139b7afbdf280aced5b7b3ec30cd8703fa0b8e.tar.bz2
scummvm-rg350-6c139b7afbdf280aced5b7b3ec30cd8703fa0b8e.zip
CRYO: Remove double screen code (unused)
Diffstat (limited to 'engines/cryo/cryolib.cpp')
-rw-r--r--engines/cryo/cryolib.cpp21
1 files changed, 8 insertions, 13 deletions
diff --git a/engines/cryo/cryolib.cpp b/engines/cryo/cryolib.cpp
index fd5f805d11..133587d7b6 100644
--- a/engines/cryo/cryolib.cpp
+++ b/engines/cryo/cryolib.cpp
@@ -72,7 +72,6 @@ void View::initDatas(int w, int h, void *buffer) {
_width = w;
_height = h;
_pitch = w;
- _doubled = false;
_normal._srcLeft = 0;
_normal._srcTop = 0;
_normal._dstLeft = 0;
@@ -207,18 +206,14 @@ void CLBlitter_CopyView2ViewSimpleSize(byte *src, int16 srcw, int16 srcp, int16
}
void CLBlitter_CopyView2ScreenCUSTOM(View *view) {
- if (!view->_doubled) {
- View *dest = g_ed->_screenView;
- int16 srcpitch = view->_pitch;
- int16 dstpitch = dest->_pitch;
-
- CLBlitter_CopyView2ViewSimpleSize(view->_bufferPtr + view->_normal._srcTop * srcpitch + view->_normal._srcLeft,
- view->_normal._width, srcpitch, view->_normal._height,
- dest->_bufferPtr + (dest->_normal._dstTop + view->_normal._dstTop) * dstpitch + dest->_normal._dstLeft + view->_normal._dstLeft,
- dest->_normal._width, dstpitch, dest->_normal._height);
-
- } else
- assert(0);
+ View *dest = g_ed->_screenView;
+ int16 srcpitch = view->_pitch;
+ int16 dstpitch = dest->_pitch;
+
+ CLBlitter_CopyView2ViewSimpleSize(view->_bufferPtr + view->_normal._srcTop * srcpitch + view->_normal._srcLeft,
+ view->_normal._width, srcpitch, view->_normal._height,
+ dest->_bufferPtr + (dest->_normal._dstTop + view->_normal._dstTop) * dstpitch + dest->_normal._dstLeft + view->_normal._dstLeft,
+ dest->_normal._width, dstpitch, dest->_normal._height);
}
void CLBlitter_CopyView2Screen(View *view) {