Changeset 15309


Ignore:
Timestamp:
04/17/12 17:58:57 (10 years ago)
Author:
nit
Message:

[titan] scale only if scaleheight && scale width not height && width

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/skin.h

    r15278 r15309  
    15361536        buffer = (*cinfo.mem->alloc_sarray) ((j_common_ptr) &cinfo, JPOOL_IMAGE, row_stride, 1);
    15371537
    1538         if(accelfb != NULL && accelfb->varfbsize > width * 8 && (scalewidth != 0 || scaleheight != 0))
     1538        if(accelfb != NULL && accelfb->varfbsize > width * 8 && (scalewidth != 0 || scaleheight != 0) && (scalewidth != width || scaleheight != height))
    15391539        {
    15401540                //auto scale to mwidth / mheight
     
    18301830        if((pictype == 0 || pictype == 1) && buf == NULL) return;
    18311831
    1832         if(pictype == 0 && (scalewidth != 0 || scaleheight != 0))
     1832        if(pictype == 0 && (scalewidth != 0 || scaleheight != 0) && (scalewidth != width || scaleheight != height))
    18331833        {
    18341834                //auto scale to mwidth / mheight
Note: See TracChangeset for help on using the changeset viewer.