Roxen.git / server / base_server / roxen.pike

version» Context lines:

Roxen.git/server/base_server/roxen.pike:1:   // This file is part of Roxen WebServer.   // Copyright © 1996 - 2001, Roxen IS.   //   // The Roxen WebServer main program.   //   // Per Hedbor, Henrik Grubbström, Pontus Hagland, David Hedbor and others.   // ABS and suicide systems contributed freely by Francesco Chemolli    - constant cvs_version="$Id: roxen.pike,v 1.864 2004/03/09 16:04:31 grubba Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.865 2004/03/09 16:21:56 grubba Exp $";      //! @appears roxen   //!   //! The Roxen WebServer main program.      // The argument cache. Used by the image cache.   ArgCache argcache;      // Some headerfiles   #define IN_ROXEN
Roxen.git/server/base_server/roxen.pike:2642:    {    reply = reply->scale( w,h );    if( alpha )    alpha = alpha->scale( w,h );    }    else if( (type & SCALEI) &&    ((reply->xsize() != w) || (reply->ysize() != h)) )    {    if( w && h )    { -  if( w / (float)reply->xsize() < h / (float)reply->ysize() ) +  if( (w * (float)reply->ysize()) < (h * (float)reply->xsize()) )    h = 0;    else    w = 0;    }    w = min( w, reply->xsize() );    h = min( h, reply->ysize() );    reply = reply->scale( w,h );    if( alpha )    alpha = alpha->scale( w,h );    }