From 1d595f048c9e59bbff14217e2fe3821ee3e1aaa1 Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 9 May 2010 19:17:52 +0200 Subject: changed from SDL rendering to OpenGL draw, repaint methods do not have the SDL_Surface* parameter anymore --- src/menu/frame.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/menu/frame.cpp') diff --git a/src/menu/frame.cpp b/src/menu/frame.cpp index 228df767..08cc833a 100644 --- a/src/menu/frame.cpp +++ b/src/menu/frame.cpp @@ -56,8 +56,10 @@ namespace usdx return background; } - void Frame::draw(SDL_Surface* display) const + void Frame::draw(void) { - background->repaint(display); + if (background) { + background->repaint(); + } } }; -- cgit v1.2.3