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:
@@ -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);
|
||||
|
||||
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user