Skip to content

Commit 328eccc

Browse files
committed
Minor tweak to GRIDRES setup
1 parent 093ae4b commit 328eccc

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/accessvis/earth.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -87,8 +87,7 @@ def set_resolution(val):
8787
settings.RES = val
8888
settings.TEXRES = pow(2, 10+val)
8989
settings.FULL_RES_Y = pow(2,max(val-2,0)) * 10800
90-
settings.GRIDRES = pow(2, 9+val)
91-
settings.GRIDRES = min(settings.GRIDRES, settings.MAXGRIDRES)
90+
settings.GRIDRES = min(pow(2, 9+val), settings.MAXGRIDRES)
9291

9392
def resolution_selection(default=1):
9493
#Output texture resolution setting

0 commit comments

Comments
 (0)