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 - 2004, 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.883 2004/10/11 14:40:26 wellhard Exp $"; + constant cvs_version="$Id: roxen.pike,v 1.884 2004/11/16 18:59:52 jonasw 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:2805:    w = 0;    }    w = min( w, reply->xsize() );    h = min( h, reply->ysize() );    reply = reply->scale( w,h );    if( alpha )    alpha = alpha->scale( w,h );    }    };    -  if( args->scale ) +  if( sizeof(args->scale || "") )    {    int x, y;    if( sscanf( args->scale, "%d,%d", x, y ) == 2)    do_scale_and_crop( x0, y0, x1, y1, x, y, SCALEA|CROP );    else if( (float)args->scale < 3.0)    do_scale_and_crop( x0, y0, x1, y1,    ((float)args->scale), ((float)args->scale),    SCALEF|CROP );    }    else -  if( args->maxwidth || args->maxheight || -  args["max-width"] || args["max-height"] ) +  if( sizeof( args->maxwidth || args->maxheight || +  args["max-width"] || args["max-height"] || "") )    {    int x = (int)args->maxwidth|| (int)args["max-width"];    int y = (int)args->maxheight||(int)args["max-height"];    do_scale_and_crop( x0, y0, x1, y1, x, y, SCALEI|CROP );    }    else    do_scale_and_crop( x0, y0, x1, y1, 0, 0, CROP );    do_scale_and_crop = 0; // To avoid garbage.       if( args["span-width"] || args["span-height"] )