diff options
author | Kevin Chabowski <kevin@kch42.de> | 2013-08-15 23:11:51 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2013-08-15 23:11:51 +0200 |
commit | 10b0d7b2804529bdcb16a7a0835eb5f50a7cf2ea (patch) | |
tree | d17782072319eea4c6007a092c3760912f12c110 | |
parent | 863d9a04f066bcf2162dbec160033b6084757ec0 (diff) | |
download | biomed-10b0d7b2804529bdcb16a7a0835eb5f50a7cf2ea.tar.gz biomed-10b0d7b2804529bdcb16a7a0835eb5f50a7cf2ea.tar.bz2 biomed-10b0d7b2804529bdcb16a7a0835eb5f50a7cf2ea.zip |
Fixing checkerboard background
-rw-r--r-- | mapwidget.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/mapwidget.go b/mapwidget.go index 25c4cff..b3d8055 100644 --- a/mapwidget.go +++ b/mapwidget.go @@ -223,8 +223,8 @@ func (mw *MapWidget) drawBg() { drawable := mw.bg.GetDrawable() gc := gdk.NewGC(drawable) - w := (mw.w + 16) / 32 - h := (mw.h + 16) / 32 + w := int(math.Ceil(float64(mw.w) / 32)) + h := int(math.Ceil(float64(mw.h) / 32)) for y := 0; y < h; y++ { for x := 0; x < w; x++ { |