added texreduce to 1.0 branch

upped scopefov limit to 60


git-svn-id: svn://svn.code.sf.net/p/actiongame/code/trunk/ac@4296 e016b1c5-ed68-44aa-a2f7-31cac88cffde
This commit is contained in:
Lee Salzman
2009-03-25 15:18:57 +00:00
parent 438a0e36b2
commit 4bf52adcfd
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -425,7 +425,7 @@ void fixresizedscreen()
}
FVARP(fov, 75, 90, 120);
VARP(scopefov, 5, 50, 50);
VARP(scopefov, 5, 50, 60);
VARP(spectfov, 5, 110, 120);
+3 -3
View File
@@ -88,10 +88,10 @@ void resizetexture(int w, int h, bool mipmap, bool canreduce, GLenum target, int
{
int hwlimit = hwtexsize,
sizelimit = mipmap && maxtexsize ? min(maxtexsize, hwlimit) : hwlimit;
if(canreduce) loopi(texreduce)
if(canreduce && texreduce)
{
if(w > 1) w /= 2;
if(h > 1) h /= 2;
w = max(w>>texreduce, 1);
h = max(h>>texreduce, 1);
}
w = min(w, sizelimit);
h = min(h, sizelimit);