[Haiku-commits] r29015 - haiku/trunk/src/kits/tracker
Stephan Assmus
superstippi at gmx.de
Sun Jan 25 20:25:34 CET 2009
On 2009-01-25 at 20:20:16 [+0100], korli at BerliOS <korli at mail.berlios.de>
wrote:
> Author: korli
> Date: 2009-01-25 20:12:58 +0100 (Sun, 25 Jan 2009) New Revision: 29015
> ViewCVS: http://svn.berlios.de/viewcvs/haiku?rev=29015&view=rev
>
> Modified:
> haiku/trunk/src/kits/tracker/TrackerSettingsWindow.cpp
> Log:
> * centers the text for the settings list item as done with BStringItem
>
>
> Modified: haiku/trunk/src/kits/tracker/TrackerSettingsWindow.cpp
> ===================================================================
> --- haiku/trunk/src/kits/tracker/TrackerSettingsWindow.cpp 2009-01-25
> 18:14:46 UTC (rev 29014)
> +++ haiku/trunk/src/kits/tracker/TrackerSettingsWindow.cpp 2009-01-25
> 19:12:58 UTC (rev 29015)
> @@ -364,7 +364,9 @@
> else
> owner->SetHighColor(kBlack);
>
> - owner->MovePenTo(rect.left + 4, rect.bottom - 2);
> + font_height fheight;
> + owner->GetFontHeight(&fheight);
> + owner->MovePenTo(rect.left + 4, rect.top + fheight.ascent + 2 +
> floorf(fheight.leading / 2));
>
> owner->DrawString(Text());
BTW, I know the old Tracker drawing code uses MovePen() a lot, but on Haiku
(and I would guess BeOS too?), it's much faster to pass the drawing
location in DrawString().
Best regards,
-Stephan
More information about the Haiku-commits
mailing list