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

rogueviz::presentation::draw_texture now ignores vid.fsize when inHighQual

This commit is contained in:
Zeno Rogue 2020-11-19 18:20:25 +01:00
parent ef3170dce7
commit 162d298927

View File

@ -108,11 +108,13 @@ map<string, texture::texture_data> textures;
void draw_texture(texture::texture_data& tex) {
static vector<glhr::textured_vertex> rtver(4);
int fs = inHighQual ? 0 : 2 * vid.fsize;
ld tx = tex.tx;
ld ty = tex.ty;
ld scalex = (vid.xres/2 - 2 * vid.fsize) / (current_display->radius * tx);
ld scaley = (vid.yres/2 - 2 * vid.fsize) / (current_display->radius * ty);
ld scalex = (vid.xres/2 - fs) / (current_display->radius * tx);
ld scaley = (vid.yres/2 - fs) / (current_display->radius * ty);
ld scale = min(scalex, scaley);
scale *= 2;