diff options
author | Martin Kiewitz | 2010-02-04 17:57:44 +0000 |
---|---|---|
committer | Martin Kiewitz | 2010-02-04 17:57:44 +0000 |
commit | 6664d26db791866d231e40da1da49a7c5a9ee2fc (patch) | |
tree | 0b8321d807d6f7a2b9d48ed4d5e4612669e5f259 /engines/sci/graphics/paint32.cpp | |
parent | 354543890044ae6ab0f9deb982ef6915b6b2de64 (diff) | |
download | scummvm-rg350-6664d26db791866d231e40da1da49a7c5a9ee2fc.tar.gz scummvm-rg350-6664d26db791866d231e40da1da49a7c5a9ee2fc.tar.bz2 scummvm-rg350-6664d26db791866d231e40da1da49a7c5a9ee2fc.zip |
SCI: adding GfxPaint32 class, adding back support for planes, minor change in GfxPaint16 (using #def instead of fixed value)
svn-id: r47880
Diffstat (limited to 'engines/sci/graphics/paint32.cpp')
-rw-r--r-- | engines/sci/graphics/paint32.cpp | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/engines/sci/graphics/paint32.cpp b/engines/sci/graphics/paint32.cpp new file mode 100644 index 0000000000..78f0302f45 --- /dev/null +++ b/engines/sci/graphics/paint32.cpp @@ -0,0 +1,59 @@ +/* ScummVM - Graphic Adventure Engine + * + * ScummVM is the legal property of its developers, whose names + * are too numerous to list here. Please refer to the COPYRIGHT + * file distributed with this source distribution. + * + * This program is free software; you can redistribute it and/or + * modify it under the terms of the GNU General Public License + * as published by the Free Software Foundation; either version 2 + * of the License, or (at your option) any later version. + + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + + * You should have received a copy of the GNU General Public License + * along with this program; if not, write to the Free Software + * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. + * + * $URL$ + * $Id$ + * + */ + +#include "common/util.h" +#include "common/stack.h" +#include "graphics/primitives.h" + +#include "sci/sci.h" +#include "sci/engine/state.h" +#include "sci/engine/selector.h" +#include "sci/graphics/cache.h" +#include "sci/graphics/paint32.h" +#include "sci/graphics/font.h" +#include "sci/graphics/picture.h" +#include "sci/graphics/view.h" +#include "sci/graphics/screen.h" +#include "sci/graphics/palette.h" + +namespace Sci { + +GfxPaint32::GfxPaint32(ResourceManager *resMan, SegManager *segMan, Kernel *kernel, GfxCache *cache, GfxScreen *screen, GfxPalette *palette) + : _resMan(resMan), _segMan(segMan), _kernel(kernel), _cache(cache), _screen(screen), _palette(palette) { +} + +GfxPaint32::~GfxPaint32() { +} + +void GfxPaint32::fillRect(Common::Rect rect, byte color) { + int16 y, x; + for (y = rect.top; y < rect.bottom; y++) { + for (x = rect.left; x < rect.right; x++) { + _screen->putPixel(x, y, SCI_SCREEN_MASK_VISUAL, color, 0, 0); + } + } +} + +} // End of namespace Sci |