Ignore:
Timestamp:
Apr 20, 2011, 8:32:26 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: some more vec2i transition for simplicity.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/loader2.cpp

    r512 r513  
    7575image *load_image(spec_entry *e, bFILE *fp)
    7676{
    77   image *im=new image(e,fp);
    78   if (scale_mult!=1 || scale_div!=1)
    79     im->resize(im->Size().x*scale_mult/scale_div,im->Size().y*scale_mult/scale_div);
    80   return im;
     77    image *im = new image(e, fp);
     78    if (scale_mult != 1 || scale_div != 1)
     79        im->Scale(im->Size() * scale_mult / scale_div);
     80    return im;
    8181}
    8282
    8383image *load_image(bFILE *fp)
    8484{
    85   image *im=new image(fp);
    86   if (scale_mult!=1 || scale_div!=1)
    87     im->resize(im->Size().x*scale_mult/scale_div,im->Size().y*scale_mult/scale_div);
    88 
    89   return im;
     85    image *im = new image(fp);
     86    if (scale_mult != 1 || scale_div != 1)
     87        im->Scale(im->Size() * scale_mult / scale_div);
     88    return im;
    9089}
    9190
     
    364363
    365364
    366   image *tmp_image=new image(192,104,fnt6x13);
     365  image *tmp_image = new image(vec2i(192, 104), fnt6x13);
    367366  big_font=new JCFont(tmp_image);
    368367  delete tmp_image;
Note: See TracChangeset for help on using the changeset viewer.