mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-02-17 11:30:09 +00:00
fixed zoom while editing texture
This commit is contained in:
parent
beffe5b756
commit
082bd44c2a
1
hyper.h
1
hyper.h
@ -2461,6 +2461,7 @@ namespace texture {
|
|||||||
void remap(eTextureState old_tstate, eTextureState old_tstate_max);
|
void remap(eTextureState old_tstate, eTextureState old_tstate_max);
|
||||||
|
|
||||||
void perform_mapping();
|
void perform_mapping();
|
||||||
|
void finish_mapping();
|
||||||
|
|
||||||
void undoLock();
|
void undoLock();
|
||||||
void undo();
|
void undo();
|
||||||
|
@ -42,11 +42,13 @@ namespace mapeditor {
|
|||||||
vid.scale *= z;
|
vid.scale *= z;
|
||||||
// printf("scale = " LDF "\n", vid.scale);
|
// printf("scale = " LDF "\n", vid.scale);
|
||||||
#if CAP_TEXTURE
|
#if CAP_TEXTURE
|
||||||
texture::itt = xyscale(texture::itt, 1/z);
|
|
||||||
// display(texture::itt);
|
// display(texture::itt);
|
||||||
if(texture::tstate) {
|
texture::itt = xyscale(texture::itt, 1/z);
|
||||||
|
if(false && texture::tstate) {
|
||||||
calcparam();
|
calcparam();
|
||||||
texture::perform_mapping();
|
texture::perform_mapping();
|
||||||
|
if(texture::tstate == texture::tsAdjusting)
|
||||||
|
texture::finish_mapping();
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user