~widelands-dev/widelands/fh1

« back to all changes in this revision

Viewing changes to src/ui_basic/button.cc

  • Committer: fios at foramnagaidhlig
  • Date: 2015-05-02 15:04:16 UTC
  • Revision ID: fios@foramnagaidhlig.net-20150502150416-55mzve7w6hqzownp
Editbox is working again. Caret rendering still needs fixing though.

Show diffs side-by-side

added added

removed removed

Lines of Context:
276
276
                        uint32_t leftw = g_fh1->get_text_width(left_str, m_fontsize, true);
277
277
                        Point pos = Point(get_w() / 2, get_h() / 2);
278
278
                        Point caret_pt
279
 
                                (pos.x +nodeInfo.x + leftw - caret_im->width() / 2,
 
279
                                (pos.x + nodeInfo.x + leftw - caret_im->width() / 2,
280
280
                                pos.y + (m_layout_info->get_txt_height() - caret_im->height()) / 2);
281
281
                        dst.blit(caret_pt, caret_im);
282
282
                }