1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-23 21:07:17 +00:00

texture:: fixed some situations where texture where not remapped after changing parameters

This commit is contained in:
Zeno Rogue 2018-05-03 12:15:48 +02:00
parent c1f22b4ac5
commit 43a22ca135

View File

@ -653,6 +653,7 @@ void applyMagic() {
}
}
}
config.perform_mapping();
}
enum eTexturePanstate {tpsModel, tpsMove, tpsScale, tpsAffine, tpsZoom, tpsProjection, tpsCell, tpsTriangle, tpsTune};
@ -700,6 +701,7 @@ void mousemovement() {
if(nonzero && !newmove) {
View = inverse(spintox(mouseeu)) * spintox(lastmouse) * View;
vid.scale = vid.scale * sqrt(intvalxy(C0, mouseeu)) / sqrt(intvalxy(C0, lastmouse));
config.perform_mapping();
}
if(nonzero) lastmouse = mouseeu;
newmove = false;
@ -1452,7 +1454,7 @@ void texture_config::remap(eTextureState old_tstate, eTextureState old_tstate_ma
}
}
}
else if(old_tstate >= tsAdjusting) {
else if(old_tstate >= tsAdjusting || old_tstate_max >= tsAdjusting) {
printf("perform_mapping %d/%d\n", config.tstate, config.tstate_max);
calcparam();
drawthemap();