1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2026-05-21 13:32:07 +00:00

fixed zoom while editing texture

This commit is contained in:
Zeno Rogue
2018-02-20 22:12:31 +01:00
parent beffe5b756
commit 082bd44c2a
2 changed files with 5 additions and 2 deletions
+4 -2
View File
@@ -42,11 +42,13 @@ namespace mapeditor {
vid.scale *= z;
// printf("scale = " LDF "\n", vid.scale);
#if CAP_TEXTURE
texture::itt = xyscale(texture::itt, 1/z);
// display(texture::itt);
if(texture::tstate) {
texture::itt = xyscale(texture::itt, 1/z);
if(false && texture::tstate) {
calcparam();
texture::perform_mapping();
if(texture::tstate == texture::tsAdjusting)
texture::finish_mapping();
}
#endif
}