Ignore:
Timestamp:
Apr 20, 2011, 12:39:27 AM (11 years ago)
Author:
Sam Hocevar
Message:

imlib: use vec2i for image::size and unroll all necessary changes
everywhere else in the code.

File:
1 edited

Legend:

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

    r494 r512  
    1010
    1111#include "config.h"
     12
     13#include "common.h"
    1214
    1315#include "help.h"
     
    2527{
    2628  image *im=cache.img(help_screens[help_page]);
    27   int x1=xres/2-im->width()/2,y1=yres/2-im->height()/2;
    28   int x2=x1+im->width(),y2=y1+im->height();
     29  int x1=xres/2-im->Size().x/2,y1=yres/2-im->Size().y/2;
     30  int x2=x1+im->Size().x,y2=y1+im->Size().y;
    2931  im->put_image(screen,x1,y1);
    3032  screen->bar(0,0,x1-1,yres,0);
Note: See TracChangeset for help on using the changeset viewer.