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

« back to all changes in this revision

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

  • Committer: Package Import Robot
  • Author(s): Patrick Matthäi
  • Date: 2013-10-07 10:26:14 UTC
  • mfrom: (1.1.11)
  • Revision ID: package-import@ubuntu.com-20131007102614-tg2zjdz8vmtl6n7i
Tags: 1.3.9.29-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
128
128
            mCaptionOffsetY = getOption("captionoffsety");
129
129
            if (!mCaptionOffsetY)
130
130
                mCaptionOffsetY = 5;
131
 
            mCaptionAlign = getOption("captionalign");
 
131
            mCaptionAlign = static_cast<gcn::Graphics::Alignment>(
 
132
                getOption("captionalign"));
132
133
            if (mCaptionAlign < gcn::Graphics::LEFT
133
134
                || mCaptionAlign > gcn::Graphics::RIGHT)
134
135
            {
289
290
    {
290
291
        g->setColorAll(mForegroundColor, mForegroundColor2);
291
292
        int x;
292
 
        switch (static_cast<gcn::Graphics::Alignment>(mCaptionAlign))
 
293
        switch (mCaptionAlign)
293
294
        {
294
295
            case Graphics::LEFT:
295
296
            default: