stringinput.cpp: center NEUTRINO_ICON_NUMERIC_PAD horizontally

Origin commit data
------------------
Commit: c9a6a8721b
Author: vanhofen <vanhofen@gmx.de>
Date: 2012-11-07 (Wed, 07 Nov 2012)

Origin message was:
------------------
- stringinput.cpp: center NEUTRINO_ICON_NUMERIC_PAD horizontally
This commit is contained in:
vanhofen
2012-11-07 13:49:01 +01:00
parent 1db8274bde
commit da7908bfad

View File

@@ -755,7 +755,9 @@ void CStringInputSMS::paint(bool /*unused*/)
{ {
CStringInput::paint(true); CStringInput::paint(true);
frameBuffer->paintIcon(NEUTRINO_ICON_NUMERIC_PAD, x+20+140, y+ hheight+ mheight+ iheight* 3+ 30, 0, COL_MENUCONTENT); int w = 0, h = 0;
frameBuffer->getIconSize(NEUTRINO_ICON_NUMERIC_PAD, &w, &h);
frameBuffer->paintIcon(NEUTRINO_ICON_NUMERIC_PAD, x + (width/2) - (w/2), y+ hheight+ mheight+ iheight* 3+ 30, 0, COL_MENUCONTENT);
//buttonbar //buttonbar
::paintButtons(x, y + height, width, 2, CStringInputSMSButtons); ::paintButtons(x, y + height, width, 2, CStringInputSMSButtons);