summaryrefslogtreecommitdiff
path: root/Screen.cpp
diff options
context:
space:
mode:
authorLuke Bratch <l_bratch@yahoo.co.uk>2010-11-25 20:35:18 +0000
committerLuke Bratch <l_bratch@yahoo.co.uk>2010-11-25 20:35:18 +0000
commit413302330666a135389b759139ff9d5b6eb20052 (patch)
tree15cbb0a0651417871d8d20033227339553f4ec3c /Screen.cpp
parent71926d883a678be983a434f8c0da435178d7585d (diff)
Add background to Level, add sample background, modify Screen::blit() to always blit
onto the game window
Diffstat (limited to 'Screen.cpp')
-rw-r--r--Screen.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Screen.cpp b/Screen.cpp
index 5a0b157..1a0e6cb 100644
--- a/Screen.cpp
+++ b/Screen.cpp
@@ -10,14 +10,14 @@ Screen::Screen() {
SDL_WM_SetCaption("Intense Marcus", NULL);
}
-void Screen::blit(int x, int y, SDL_Surface* src, SDL_Surface* dst, SDL_Rect* clip) {
+void Screen::blit(int x, int y, SDL_Surface* src, SDL_Rect* clip) {
// Destination position
SDL_Rect pos;
pos.x = x;
pos.y = y;
- SDL_BlitSurface(src, clip, dst, &pos);
+ SDL_BlitSurface(src, clip, screen, &pos);
}
void Screen::flip() {