mirror of
				https://github.com/zenorogue/hyperrogue.git
				synced 2025-10-31 05:52:59 +00:00 
			
		
		
		
	forced_center_down parameter
This commit is contained in:
		| @@ -1189,6 +1189,9 @@ EX void initConfig() { | |||||||
|  |  | ||||||
|   param_b(vid.consider_shader_projection, "shader-projection", true); |   param_b(vid.consider_shader_projection, "shader-projection", true); | ||||||
|  |  | ||||||
|  |   param_i(forced_center_down, "forced_center_down") | ||||||
|  |   -> editable(0, 100, 10, "forced center down", "make the center not the actual screen center", 'd'); | ||||||
|  |    | ||||||
|   param_b(tortoise::shading_enabled, "tortoise_shading", true); |   param_b(tortoise::shading_enabled, "tortoise_shading", true); | ||||||
|  |  | ||||||
|   param_f(bounded_mine_percentage, "bounded_mine_freq") |   param_f(bounded_mine_percentage, "bounded_mine_freq") | ||||||
|   | |||||||
| @@ -5448,6 +5448,8 @@ EX bool old_center; | |||||||
|  |  | ||||||
| EX ld min_scale = 1e-6; | EX ld min_scale = 1e-6; | ||||||
|  |  | ||||||
|  | EX int forced_center_down = ISANDROID ? 2 : ISIOS ? 40 : 40; | ||||||
|  |  | ||||||
| EX void calcparam() { | EX void calcparam() { | ||||||
|  |  | ||||||
|   DEBBI(DF_GRAPH, ("calc param")); |   DEBBI(DF_GRAPH, ("calc param")); | ||||||
| @@ -5466,7 +5468,8 @@ EX void calcparam() { | |||||||
|    |    | ||||||
|   ld realradius = min(cd->xsize / 2, cd->ysize / 2); |   ld realradius = min(cd->xsize / 2, cd->ysize / 2); | ||||||
|    |    | ||||||
|   cd->scrsize = realradius - (inHighQual ? 0 : ISANDROID ? 2 : ISIOS ? 40 : 40); |   cd->scrsize = realradius; | ||||||
|  |   if(!inHighQual) cd->scrsize -= forced_center_down; | ||||||
|  |  | ||||||
|   current_display->sidescreen = permaside; |   current_display->sidescreen = permaside; | ||||||
|    |    | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user
	 Zeno Rogue
					Zeno Rogue