From 816030e73aad13c39bc84ca6fdb814ba7131f19f Mon Sep 17 00:00:00 2001 From: Alexander Sulfrian Date: Sun, 15 Apr 2012 22:50:28 +0200 Subject: menu/background: backgrounds get to know the parent component Backgrounds now know the parent control, they are painted in, to query the size. Backgrounds are not allowed to use glClear anymore, should only draw something during the extend of the parent control and should take care to do not modify the opengl cursor position. --- src/frames/loading_frame.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/frames/loading_frame.cpp') diff --git a/src/frames/loading_frame.cpp b/src/frames/loading_frame.cpp index ef05bd48..b1de9b68 100644 --- a/src/frames/loading_frame.cpp +++ b/src/frames/loading_frame.cpp @@ -38,8 +38,8 @@ namespace usdx Frame(app) { // RgbColor background(100, 100, 100); -// set_background(new BackgroundColor(background)); - set_background(new BackgroundImage("game/themes/Deluxe/[bg-load]blue.jpg")); +// set_background(new BackgroundColor(*this, background)); + set_background(new BackgroundImage(*this, "game/themes/Deluxe/[bg-load]blue.jpg")); DrawableControl *c = new Text(this, "Halloäöüß"); c->set_position(100, 100); -- cgit v1.2.3