summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 22:35:06 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-01-16 22:35:06 +0000
commit12356c8b5b7002cdffaa6a737f54806f52241bfb (patch)
tree8c2f46d37296420839b5cb3b9a231b5af94b31e5 /src/graphic/graphic.cpp
parentc6ee43355e49e4099fdb2e1b26bf29eddcee130a (diff)
downloadmana-12356c8b5b7002cdffaa6a737f54806f52241bfb.tar.gz
mana-12356c8b5b7002cdffaa6a737f54806f52241bfb.tar.bz2
mana-12356c8b5b7002cdffaa6a737f54806f52241bfb.tar.xz
mana-12356c8b5b7002cdffaa6a737f54806f52241bfb.zip
Removed datafile and configfile and any leftover old GUI drawing code.
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 281c3c89..bc982b6c 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -200,8 +200,19 @@ void Graphics::drawImageRect(
y + h - bottomRight->getHeight());
}
+void Graphics::drawImageRect(
+ int x, int y, int w, int h,
+ const ImageRect &imgRect)
+{
+ drawImageRect(x, y, w, h,
+ imgRect.grid[0], imgRect.grid[2], imgRect.grid[6], imgRect.grid[8],
+ imgRect.grid[1], imgRect.grid[5], imgRect.grid[7], imgRect.grid[3],
+ imgRect.grid[4]);
+}
+
void Graphics::updateScreen()
{
+ //SDL_Flip();
blit(buffer, screen, 0, 0, 0, 0, SCREEN_W, SCREEN_H);
}