Skip to content

Commit

Permalink
Minor tweak to GRIDRES setup
Browse files Browse the repository at this point in the history
  • Loading branch information
OKaluza committed Oct 25, 2024
1 parent 093ae4b commit 328eccc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/accessvis/earth.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,7 @@ def set_resolution(val):
settings.RES = val
settings.TEXRES = pow(2, 10+val)
settings.FULL_RES_Y = pow(2,max(val-2,0)) * 10800
settings.GRIDRES = pow(2, 9+val)
settings.GRIDRES = min(settings.GRIDRES, settings.MAXGRIDRES)
settings.GRIDRES = min(pow(2, 9+val), settings.MAXGRIDRES)

def resolution_selection(default=1):
#Output texture resolution setting
Expand Down

0 comments on commit 328eccc

Please sign in to comment.