From f12a404e8888b50e645057897adf70b089e1a90a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20A=C3=9Fmus?= Date: Fri, 3 Nov 2006 09:40:48 +0000 Subject: [PATCH] * small simplification git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@19189 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/deskbar/TimeView.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/apps/deskbar/TimeView.cpp b/src/apps/deskbar/TimeView.cpp index f9f16a21cf..110991fa4e 100644 --- a/src/apps/deskbar/TimeView.cpp +++ b/src/apps/deskbar/TimeView.cpp @@ -299,13 +299,10 @@ TTimeView::Draw(BRect /*updateRect*/) FillRect(Bounds()); SetHighColor(0, 0, 0, 255); - if (fShowingDate) { - MovePenTo(fDateLocation); - DrawString(fDateStr); - } else { - MovePenTo(fTimeLocation); - DrawString(fTimeStr); - } + if (fShowingDate) + DrawString(fDateStr, fDateLocation); + else + DrawString(fTimeStr, fTimeLocation); PopState(); }