Changeset 15251


Ignore:
Timestamp:
04/14/12 00:16:44 (11 years ago)
Author:
nit
Message:

[titan] use jpg read scale

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r15242 r15251  
    14201420        jpeg_read_header(&cinfo, TRUE);
    14211421        cinfo.out_color_space = JCS_RGB;
    1422         cinfo.scale_denom = 1;
     1422       
     1423        if((scalewidth != 0 || scaleheight != 0) && (mwidth < 300 || mheight < 300))
     1424                cinfo.scale_denom = 8;
     1425        else
     1426                cinfo.scale_denom = 1;
     1427
    14231428        jpeg_start_decompress(&cinfo);
    14241429        width = cinfo.output_width;
Note: See TracChangeset for help on using the changeset viewer.