diff options
author | Raphael Langella <raphael.langella@gmail.com> | 2010-12-10 13:12:50 +0100 |
---|---|---|
committer | Raphael Langella <raphael.langella@gmail.com> | 2010-12-10 13:12:50 +0100 |
commit | e99ebefd96acb3f4afe8342a500fb0631d825d9a (patch) | |
tree | 24f6f91c2f67a20f49fd438135a8cb029296e969 /crawl-ref/source/tilereg.h | |
parent | 904c6acb4b52b760a6d33f92b7f0c5545412acfc (diff) | |
download | crawl-ref-e99ebefd96acb3f4afe8342a500fb0631d825d9a.tar.gz crawl-ref-e99ebefd96acb3f4afe8342a500fb0631d825d9a.zip |
Add a no_scaling boolean to set_transform
This fix the tiles offset bug with the new skill menu. I don't really
understand why scaling breaks the display while translating is still
needed. So, this is more a workaround, than a proper fix. But it works.
Diffstat (limited to 'crawl-ref/source/tilereg.h')
-rw-r--r-- | crawl-ref/source/tilereg.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crawl-ref/source/tilereg.h b/crawl-ref/source/tilereg.h index 3f26c9e58d..d81bcaf1e0 100644 --- a/crawl-ref/source/tilereg.h +++ b/crawl-ref/source/tilereg.h @@ -71,7 +71,7 @@ public: protected: void recalculate(); virtual void on_resize() = 0; - void set_transform(); + void set_transform(bool no_scaling = false); }; class FontWrapper; |