From 413302330666a135389b759139ff9d5b6eb20052 Mon Sep 17 00:00:00 2001 From: Luke Bratch Date: Thu, 25 Nov 2010 20:35:18 +0000 Subject: Add background to Level, add sample background, modify Screen::blit() to always blit onto the game window --- Screen.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Screen.cpp') 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() { -- cgit v1.2.3