mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2024-11-27 22:39:53 +00:00
rogueviz::presentation::draw_texture now ignores vid.fsize when inHighQual
This commit is contained in:
parent
ef3170dce7
commit
162d298927
@ -109,10 +109,12 @@ map<string, texture::texture_data> textures;
|
|||||||
void draw_texture(texture::texture_data& tex) {
|
void draw_texture(texture::texture_data& tex) {
|
||||||
static vector<glhr::textured_vertex> rtver(4);
|
static vector<glhr::textured_vertex> rtver(4);
|
||||||
|
|
||||||
|
int fs = inHighQual ? 0 : 2 * vid.fsize;
|
||||||
|
|
||||||
ld tx = tex.tx;
|
ld tx = tex.tx;
|
||||||
ld ty = tex.ty;
|
ld ty = tex.ty;
|
||||||
ld scalex = (vid.xres/2 - 2 * vid.fsize) / (current_display->radius * tx);
|
ld scalex = (vid.xres/2 - fs) / (current_display->radius * tx);
|
||||||
ld scaley = (vid.yres/2 - 2 * vid.fsize) / (current_display->radius * ty);
|
ld scaley = (vid.yres/2 - fs) / (current_display->radius * ty);
|
||||||
ld scale = min(scalex, scaley);
|
ld scale = min(scalex, scaley);
|
||||||
scale *= 2;
|
scale *= 2;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user