aboutsummaryrefslogtreecommitdiff
path: root/engines/draci/screen.cpp
diff options
context:
space:
mode:
authorRobert Špalek2009-10-30 06:11:04 +0000
committerRobert Špalek2009-10-30 06:11:04 +0000
commit6411125f39c5b02bec5dc4c38e26916a3b7a0304 (patch)
treebefb238c768dee14c917cc44734bf5c8eb4d3191 /engines/draci/screen.cpp
parent839a7d5db64af758190cdc3dd5ad23613df6c6d7 (diff)
downloadscummvm-rg350-6411125f39c5b02bec5dc4c38e26916a3b7a0304.tar.gz
scummvm-rg350-6411125f39c5b02bec5dc4c38e26916a3b7a0304.tar.bz2
scummvm-rg350-6411125f39c5b02bec5dc4c38e26916a3b7a0304.zip
Moved all one-line getters/setters to the header files
svn-id: r45524
Diffstat (limited to 'engines/draci/screen.cpp')
-rw-r--r--engines/draci/screen.cpp51
1 files changed, 0 insertions, 51 deletions
diff --git a/engines/draci/screen.cpp b/engines/draci/screen.cpp
index 019ffa605e..70e0faa40a 100644
--- a/engines/draci/screen.cpp
+++ b/engines/draci/screen.cpp
@@ -145,57 +145,6 @@ void Screen::clearScreen() {
memset(ptr, 0, kScreenWidth * kScreenHeight);
}
-/**
- * @brief Fills the screen with the specified colour
- * @param colour The colour the screen should be filled with
- *
- * Fills the screen with the specified colour and marks the whole screen dirty.
- */
-void Screen::fillScreen(uint8 colour) {
- _surface->fill(colour);
- _surface->markDirty();
-}
-
-/**
- * @brief Draws a rectangle on the screen
- * @param r Which rectangle to draw
- * colour The colour of the rectangle
- */
-void Screen::drawRect(Common::Rect r, uint8 colour) {
- // Clip the rectangle to screen size
- r.clip(_surface->w, _surface->h);
-
- // If the whole rectangle is outside the screen, return
- if (r.isEmpty())
- return;
-
- byte *ptr = (byte *)_surface->getBasePtr(r.left, r.top);
-
- for (uint16 i = 0; i < r.width(); ++i) {
- for (uint16 j = 0; j < r.height(); ++j) {
- ptr[j * kScreenWidth + i] = colour;
- }
- }
-
- _surface->markDirtyRect(r);
-}
-
-/**
- * @brief Fetches the current palette
- * @return A byte pointer to the current palette
- */
-const byte *Screen::getPalette() const {
- return _palette;
-}
-
-/**
- * @brief Fetches the current surface
- * @return A pointer to the current surface
- */
-Draci::Surface *Screen::getSurface() {
- return _surface;
-}
-
} // End of namespace Draci