Ignore:
Timestamp:
Apr 22, 2011, 4:13:08 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: merge almost all trans_image blit methods into one large template
function and refactor them for size.

File:
1 edited

Legend:

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

    r527 r528  
    681681{
    682682  trans_image *cpict=picture();
    683   cpict->put_fade(screen,
     683  cpict->PutFade(screen,
    684684          (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    685685          y-cpict->Size().y+1-current_vyadd,
     
    693693  trans_image *cpict=picture();
    694694  if (fade_count())
    695     cpict->put_fade_tint(screen,
     695    cpict->PutFadeTint(screen,
    696696               (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    697697               y-cpict->Size().y+1-current_vyadd,
     
    702702
    703703  else
    704     cpict->put_remaped(screen,
     704    cpict->PutRemap(screen,
    705705               (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    706706               y-cpict->Size().y+1-current_vyadd,
     
    713713  trans_image *cpict=picture();
    714714  if (fade_count())
    715     cpict->put_fade_tint(screen,
     715    cpict->PutFadeTint(screen,
    716716               (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    717717               y-cpict->Size().y+1-current_vyadd,
     
    722722
    723723  else
    724     cpict->put_double_remaped(screen,
     724    cpict->PutDoubleRemap(screen,
    725725               (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    726726               y-cpict->Size().y+1-current_vyadd,
     
    734734{
    735735  trans_image *cpict=picture();
    736   cpict->put_predator(screen,
     736  cpict->PutPredator(screen,
    737737             (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    738738             y-cpict->Size().y+1-current_vyadd);
     
    757757    {
    758758      trans_image *cpict=picture();
    759       cpict->put_image(screen,
     759      cpict->PutImage(screen,
    760760               (direction<0 ? x-(cpict->Size().x-x_center()-1) : x-x_center())-current_vxadd,
    761761               y-cpict->Size().y+1-current_vyadd);
Note: See TracChangeset for help on using the changeset viewer.