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/imlib/pmenu.cpp

    r494 r512  
    1313#include <string.h>
    1414
     15#include "common.h"
     16
    1517#include "pmenu.h"
    1618
     
    285287{
    286288  if (p->xp!=-1) return p->xp;
    287   int w=bar->screen->width();
     289  int w=bar->screen->Size().x;
    288290
    289291
     
    376378  mx-=bar->x;
    377379  my-=bar->y;
    378   if (mx<0 || my<0 || mx>=bar->screen->width() || my>=bar->screen->height()) return NULL;
     380  if (mx<0 || my<0 || mx>=bar->screen->Size().x || my>=bar->screen->Size().y) return NULL;
    379381  else
    380382  {
Note: See TracChangeset for help on using the changeset viewer.