~ubuntu-branches/ubuntu/trusty/manaplus/trusty-proposed

« back to all changes in this revision

Viewing changes to src/gui/widgets/textfield.cpp

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi, Andrei Karas, Patrick Matthäi
  • Date: 2013-05-18 21:06:29 UTC
  • mfrom: (1.1.2)
  • Revision ID: package-import@ubuntu.com-20130518210629-3trtowluum0tekob
Tags: 1.3.5.12-1
[ Andrei Karas ]
* Add new files to copyright file.

[ Patrick Matthäi ]
* New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
60
60
    mLastEventPaste(false),
61
61
    mPadding(1),
62
62
    mCaretColor(&getThemeColor(Theme::CARET)),
 
63
    mForegroundColor2(getThemeColor(Theme::TEXTFIELD_OUTLINE)),
63
64
    mPopupMenu(nullptr)
64
65
{
65
66
    setFrameSize(2);
138
139
                  mXScroll);
139
140
    }
140
141
 
141
 
    graphics->setColor(mForegroundColor);
 
142
    static_cast<Graphics*>(graphics)->setColorAll(
 
143
        mForegroundColor, mForegroundColor2);
142
144
    gcn::Font *const font = getFont();
143
145
    font->drawString(graphics, mText, mPadding - mXScroll, mPadding);
144
146
    BLOCK_END("TextField::draw")