diff options
author | Alexander Sulfrian <alexander@sulfrian.net> | 2012-04-15 22:50:28 +0200 |
---|---|---|
committer | Alexander Sulfrian <alexander@sulfrian.net> | 2013-01-13 22:40:52 +0100 |
commit | 816030e73aad13c39bc84ca6fdb814ba7131f19f (patch) | |
tree | ead3c4c691b3db7f396982327307c5da6ca99855 /src/frames | |
parent | e0e9997a5e92ce2a31f0ff4d139109be4434105b (diff) | |
download | usdx-816030e73aad13c39bc84ca6fdb814ba7131f19f.tar.gz usdx-816030e73aad13c39bc84ca6fdb814ba7131f19f.tar.xz usdx-816030e73aad13c39bc84ca6fdb814ba7131f19f.zip |
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.
Diffstat (limited to 'src/frames')
-rw-r--r-- | src/frames/loading_frame.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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); |