diff options
author | Filippos Karapetis | 2010-01-05 14:19:53 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-01-05 14:19:53 +0000 |
commit | 9606e7fca72645a05ecdce97cc484351e23c7ead (patch) | |
tree | 34d470f0a36cf533945f1ef51de26f5bb829756d /engines/sci/graphics/view.cpp | |
parent | 45bf6fc0d7bb440208b21f9201a80e92db328df7 (diff) | |
download | scummvm-rg350-9606e7fca72645a05ecdce97cc484351e23c7ead.tar.gz scummvm-rg350-9606e7fca72645a05ecdce97cc484351e23c7ead.tar.bz2 scummvm-rg350-9606e7fca72645a05ecdce97cc484351e23c7ead.zip |
Some initial work on SCI1.1 view scaling (not working yet)
svn-id: r47027
Diffstat (limited to 'engines/sci/graphics/view.cpp')
-rw-r--r-- | engines/sci/graphics/view.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/sci/graphics/view.cpp b/engines/sci/graphics/view.cpp index 068ff24b02..04ac6e1bed 100644 --- a/engines/sci/graphics/view.cpp +++ b/engines/sci/graphics/view.cpp @@ -461,7 +461,7 @@ void View::unditherBitmap(byte *bitmapPtr, int16 width, int16 height, byte clear } } -void View::draw(Common::Rect rect, Common::Rect clipRect, Common::Rect clipRectTranslated, LoopNo loopNo, CelNo celNo, byte priority, uint16 EGAmappingNr, int16 origHeight) { +void View::draw(Common::Rect rect, Common::Rect clipRect, Common::Rect clipRectTranslated, LoopNo loopNo, CelNo celNo, byte priority, uint16 EGAmappingNr, int16 origHeight, uint16 scaleX, uint16 scaleY) { Palette *palette = _embeddedPal ? &_viewPalette : &_palette->_sysPalette; CelInfo *celInfo = getCelInfo(loopNo, celNo); byte *bitmap = getBitmap(loopNo, celNo); @@ -482,6 +482,8 @@ void View::draw(Common::Rect rect, Common::Rect clipRect, Common::Rect clipRectT bitmap += (clipRect.top - rect.top) * celWidth + (clipRect.left - rect.left); + // TODO: SCI1.1 view scaling + if (!_EGAmapping) { for (y = clipRectTranslated.top; y < clipRectTranslated.top + height; y++, bitmap += celWidth) { for (x = 0; x < width; x++) { |