mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 14:02:59 +00:00 
			
		
		
		
	rogueviz::presentation::draw_texture now ignores vid.fsize when inHighQual
This commit is contained in:
		| @@ -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; | ||||||
|  |  | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue