aboutsummaryrefslogtreecommitdiff
path: root/engines/neverhood/graphics.cpp
diff options
context:
space:
mode:
authorjohndoe1232011-07-04 10:52:07 +0000
committerWillem Jan Palenstijn2013-05-08 20:30:58 +0200
commitbd1749863e45cde53707d0ae38b28825bc0dba2e (patch)
tree8c14538b249ecccf966e1ef97aeb56735e334b3f /engines/neverhood/graphics.cpp
parent1285b37b321850a3584ce1bbdba58462e0b8fbe3 (diff)
downloadscummvm-rg350-bd1749863e45cde53707d0ae38b28825bc0dba2e.tar.gz
scummvm-rg350-bd1749863e45cde53707d0ae38b28825bc0dba2e.tar.bz2
scummvm-rg350-bd1749863e45cde53707d0ae38b28825bc0dba2e.zip
NEVERHOOD: Start with the Palette2 class (which needs a better name later)
- Implement Screen::drawSurface2 (needs color key support) - The first intro now show up, complete with fade-in and fade-out
Diffstat (limited to 'engines/neverhood/graphics.cpp')
-rw-r--r--engines/neverhood/graphics.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/engines/neverhood/graphics.cpp b/engines/neverhood/graphics.cpp
index 2a86966cf5..fa7c15211a 100644
--- a/engines/neverhood/graphics.cpp
+++ b/engines/neverhood/graphics.cpp
@@ -22,6 +22,7 @@
#include "neverhood/graphics.h"
#include "neverhood/resource.h"
+#include "neverhood/screen.h"
namespace Neverhood {
@@ -51,7 +52,10 @@ BaseSurface::~BaseSurface() {
void BaseSurface::draw() {
debug("BaseSurface::draw()");
- // TODO
+ if (_surface && _visible && _drawRect.width > 0 && _drawRect.height > 0) {
+ // TODO: _sysRect alternate drawing code (is that used?)
+ _vm->_screen->drawSurface2(_surface, _drawRect, _clipRect);
+ }
}
void BaseSurface::addDirtyRect() {