Ignore:
Timestamp:
May 13, 2011, 9:13:58 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: reverse the image::put_image logic.

File:
1 edited

Legend:

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

    r643 r644  
    4545      {
    4646    if (*s)
    47       fnt->put_char(con_win->screen,dx,dy,*s);
     47      fnt->put_char(con_win->m_surf,dx,dy,*s);
    4848      }
    4949    }
    50     fnt->put_char(con_win->screen,wx()+cx*xa,wy()+cy*ya,'_');
     50    fnt->put_char(con_win->m_surf,wx()+cx*xa,wy()+cy*ya,'_');
    5151  }
    5252}
     
    5858    con_win=wm->new_window(lastx,lasty,screen_w(),screen_h(),NULL,name);
    5959    redraw();
    60     con_win->screen->SetClip(con_win->x1(),con_win->y1(),con_win->x2()+1,con_win->y2()+1);
     60    con_win->m_surf->SetClip(con_win->x1(),con_win->y1(),con_win->x2()+1,con_win->y2()+1);
    6161  }
    6262}
     
    9898{
    9999  if (con_win)
    100     fnt->put_char(con_win->screen,cx*fnt->width()+wx(),cy*fnt->height()+wy(),'_');
     100    fnt->put_char(con_win->m_surf,cx*fnt->width()+wx(),cy*fnt->height()+wy(),'_');
    101101}
    102102
     
    108108    int fw=fnt->width(),fh=fnt->height();
    109109    int dx=wx()+x*fw,dy=wy()+y*fh;
    110     con_win->screen->bar(dx,dy,dx+fw-1,dy+fh-1,wm->black());
    111     fnt->put_char(con_win->screen,dx,dy,ch);
     110    con_win->m_surf->bar(dx,dy,dx+fw-1,dy+fh-1,wm->black());
     111    fnt->put_char(con_win->m_surf,dx,dy,ch);
    112112  }
    113113}
Note: See TracChangeset for help on using the changeset viewer.