diff options
author | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-25 20:35:18 +0000 |
---|---|---|
committer | Luke Bratch <l_bratch@yahoo.co.uk> | 2010-11-25 20:35:18 +0000 |
commit | 413302330666a135389b759139ff9d5b6eb20052 (patch) | |
tree | 15cbb0a0651417871d8d20033227339553f4ec3c /Screen.cpp | |
parent | 71926d883a678be983a434f8c0da435178d7585d (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.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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() { |