summaryrefslogtreecommitdiffhomepage
path: root/src/Bitmap.hs
diff options
context:
space:
mode:
authorAlexander Polakov <plhk@sdf.org>2013-02-03 15:34:28 +0400
committerJose Antonio Ortega Ruiz <jao@gnu.org>2013-02-04 01:59:35 +0100
commit9bd59a251b768f87197f9f1a0618784b485353a7 (patch)
tree1cf36de111c197baa9f2bbca2ca4f8e66772cede /src/Bitmap.hs
parent30f82a14f8183bade38090b3f3d1fd8463950201 (diff)
downloadxmobar-9bd59a251b768f87197f9f1a0618784b485353a7.tar.gz
xmobar-9bd59a251b768f87197f9f1a0618784b485353a7.tar.bz2
Better icon alignment
Diffstat (limited to 'src/Bitmap.hs')
-rw-r--r--src/Bitmap.hs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Bitmap.hs b/src/Bitmap.hs
index a896626..dfc1d04 100644
--- a/src/Bitmap.hs
+++ b/src/Bitmap.hs
@@ -65,4 +65,4 @@ drawBitmap d p gc fc bc x y i =
h = height i
setForeground d gc fc'
setBackground d gc bc'
- copyPlane d (pixmap i) p gc 0 0 w h x (y - fromIntegral h) 1
+ copyPlane d (pixmap i) p gc 0 0 w h x (1 + y - fromIntegral h `div` 2) 1