diff options
author | Ira Rice <irarice@gmail.com> | 2009-02-07 12:18:52 -0700 |
---|---|---|
committer | Ira Rice <irarice@gmail.com> | 2009-02-07 12:18:52 -0700 |
commit | 1b8c088a48822641b53c2a304372471a128c2841 (patch) | |
tree | 4f2fbb68a2fb011a572bb5d0d69deb3a16780d92 /src/gui/scrollarea.cpp | |
parent | 074ca287804a56f776d641826b1ecfc1454b6c72 (diff) | |
download | mana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.gz mana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.bz2 mana-client-1b8c088a48822641b53c2a304372471a128c2841.tar.xz mana-client-1b8c088a48822641b53c2a304372471a128c2841.zip |
Added a text color preview to the setup color tab.
Signed-off-by: Ira Rice <irarice@gmail.com>
Diffstat (limited to 'src/gui/scrollarea.cpp')
-rw-r--r-- | src/gui/scrollarea.cpp | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/gui/scrollarea.cpp b/src/gui/scrollarea.cpp index e69b681c..09f7c5e7 100644 --- a/src/gui/scrollarea.cpp +++ b/src/gui/scrollarea.cpp @@ -35,15 +35,17 @@ ImageRect ScrollArea::background; ImageRect ScrollArea::vMarker; Image *ScrollArea::buttons[4][2]; -ScrollArea::ScrollArea(bool gc): +ScrollArea::ScrollArea(bool gc, bool opaque): gcn::ScrollArea(), + mOpaque(opaque), mGC(gc) { init(); } -ScrollArea::ScrollArea(gcn::Widget *widget, bool gc): +ScrollArea::ScrollArea(gcn::Widget *widget, bool gc, bool opaque): gcn::ScrollArea(widget), + mOpaque(opaque), mGC(gc) { init(); @@ -52,9 +54,8 @@ ScrollArea::ScrollArea(gcn::Widget *widget, bool gc): ScrollArea::~ScrollArea() { // Garbage collection - if (mGC) { + if (mGC) delete getContent(); - } instances--; @@ -88,8 +89,10 @@ void ScrollArea::init() const int bggridy[4] = {0, 3, 28, 31}; int a = 0, x, y; - for (y = 0; y < 3; y++) { - for (x = 0; x < 3; x++) { + for (y = 0; y < 3; y++) + { + for (x = 0; x < 3; x++) + { background.grid[a] = textbox->getSubImage( bggridx[x], bggridy[y], bggridx[x + 1] - bggridx[x] + 1, |