{"action":"created","issue":{"url":"https://api.github.com/repos/SquidPony/SquidLib/issues/119","repository_url":"https://api.github.com/repos/SquidPony/SquidLib","labels_url":"https://api.github.com/repos/SquidPony/SquidLib/issues/119/labels{/name}","comments_url":"https://api.github.com/repos/SquidPony/SquidLib/issues/119/comments","events_url":"https://api.github.com/repos/SquidPony/SquidLib/issues/119/events","html_url":"https://github.com/SquidPony/SquidLib/issues/119","id":140534000,"number":119,"title":"Height offset in SquidPanel::tint","user":{"login":"smelc","id":634720,"avatar_url":"https://avatars.githubusercontent.com/u/634720?v=3","gravatar_id":"","url":"https://api.github.com/users/smelc","html_url":"https://github.com/smelc","followers_url":"https://api.github.com/users/smelc/followers","following_url":"https://api.github.com/users/smelc/following{/other_user}","gists_url":"https://api.github.com/users/smelc/gists{/gist_id}","starred_url":"https://api.github.com/users/smelc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smelc/subscriptions","organizations_url":"https://api.github.com/users/smelc/orgs","repos_url":"https://api.github.com/users/smelc/repos","events_url":"https://api.github.com/users/smelc/events{/privacy}","received_events_url":"https://api.github.com/users/smelc/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-03-13T21:59:08Z","updated_at":"2016-03-16T20:35:16Z","closed_at":null,"body":"In [Dungeon Mercenary](http://www.schplaf.org/hgames), `SquidPanel::tint` is off by 2 pixels as shown in the image below (zoom on the red cell close to the '@'). I circumvent the bug with this patch:\r\n\r\n```{.java}\r\ngit diff squidlib/src/main/java/squidpony/squidgrid/gui/gdx/TextCellFactory.java\r\ndiff --git a/squidlib/src/main/java/squidpony/squidgrid/gui/gdx/TextCellFactory.java b/squidlib/src/main/java/squidpony/squidgrid/gui/gdx/TextCellFactory.java\r\nindex 68438a3..cc3570d 100644\r\n--- a/squidlib/src/main/java/squidpony/squidgrid/gui/gdx/TextCellFactory.java\r\n+++ b/squidlib/src/main/java/squidpony/squidgrid/gui/gdx/TextCellFactory.java\r\n@@ -946,7 +946,7 @@ public class TextCellFactory implements Disposable {\r\n         } else if(s.length() > 0 && s.charAt(0) == '\\0') {\r\n             Image im = new Image(block);\r\n             im.setColor(scc.filter(color));\r\n-            im.setSize(width * s.length(), height);\r\n+            im.setSize(width * s.length(), height + 2);\r\n             // im.setPosition(x - width * 0.5f, y - height * 0.5f, Align.center);\r\n             return im;\r\n         } else {\r\n```\r\n![tint-bug](https://cloud.githubusercontent.com/assets/634720/13731627/1c603078-e96e-11e5-8341-a3408de7ce78.png)\r\n\r\nIn this static screenshot, the bug doesn't catch the eye; but it is clearly visible \"live\", because of the \"top\" offset (i.e. at the top of cell) that leaves a 2 pixels black bar.\r\n\r\nThis bug is weird, because my workaround is in a method that has a lot of callers (`TCF::makeActor`), so it should affect other methods; but I only witness it with `tint` (it should be noted that I do not use many animations, neither AnimatedEntities, so maybe I'm missing them)."},"comment":{"url":"https://api.github.com/repos/SquidPony/SquidLib/issues/comments/197536814","html_url":"https://github.com/SquidPony/SquidLib/issues/119#issuecomment-197536814","issue_url":"https://api.github.com/repos/SquidPony/SquidLib/issues/119","id":197536814,"user":{"login":"smelc","id":634720,"avatar_url":"https://avatars.githubusercontent.com/u/634720?v=3","gravatar_id":"","url":"https://api.github.com/users/smelc","html_url":"https://github.com/smelc","followers_url":"https://api.github.com/users/smelc/followers","following_url":"https://api.github.com/users/smelc/following{/other_user}","gists_url":"https://api.github.com/users/smelc/gists{/gist_id}","starred_url":"https://api.github.com/users/smelc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smelc/subscriptions","organizations_url":"https://api.github.com/users/smelc/orgs","repos_url":"https://api.github.com/users/smelc/repos","events_url":"https://api.github.com/users/smelc/events{/privacy}","received_events_url":"https://api.github.com/users/smelc/received_events","type":"User","site_admin":false},"created_at":"2016-03-16T20:35:16Z","updated_at":"2016-03-16T20:35:16Z","body":"Still the same behavior as the previous video with fefa7c33a0741e2211bec6c420c13569b639072e :-("}}