Ignore:
Timestamp:
Mar 17, 2008, 3:25:09 AM (14 years ago)
Author:
Sam Hocevar
Message:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • abuse/trunk/src/imlib/pmenu.cpp

    r112 r120  
    2525  screen->get_clip(cx1,cy1,cx2,cy2);
    2626  if (cx1<X) cx1=X;
    27   int w = cx2 - cx1 - jwindow::left_border() - jwindow::right_border() + 1;
    28   int h = jwindow::top_border() + jwindow::bottom_border();
     27  int w = cx2 - cx1 - Jwindow::left_border() - Jwindow::right_border() + 1;
     28  int h = Jwindow::top_border() + Jwindow::bottom_border();
    2929
    3030  bar=wm->new_window(X, Y, w, 0, NULL);
     
    136136
    137137
    138 void psub_menu::hide(jwindow *parent, int x, int y)
     138void psub_menu::hide(Jwindow *parent, int x, int y)
    139139{
    140140  int w,h;
     
    176176}
    177177
    178 void psub_menu::draw(jwindow *parent, int x, int y)
     178void psub_menu::draw(Jwindow *parent, int x, int y)
    179179{
    180180  if (win) wm->close_window(win);
     
    193193
    194194  win=wm->new_window(parent->x+x,parent->y+y,
    195                      w - jwindow::left_border() - jwindow::right_border(),
    196                      h - jwindow::top_border() - jwindow::bottom_border(),
     195                     w - Jwindow::left_border() - Jwindow::right_border(),
     196                     h - Jwindow::top_border() - Jwindow::bottom_border(),
    197197                     NULL);
    198198  win->freeze();
     
    210210}
    211211
    212 void pmenu_item::draw_self(jwindow *parent, int x, int y, int w, int top, int active)
     212void pmenu_item::draw_self(Jwindow *parent, int x, int y, int w, int top, int active)
    213213{
    214214  int bx=x;
     
    245245}
    246246
    247 void pmenu_item::draw(jwindow *parent, int x, int y, int w, int top,
     247void pmenu_item::draw(Jwindow *parent, int x, int y, int w, int top,
    248248                      int active)
    249249
     
    301301
    302302
    303 int psub_menu::handle_event(jwindow *parent, int x, int y, event &ev)
     303int psub_menu::handle_event(Jwindow *parent, int x, int y, event &ev)
    304304{
    305305  int w,h;
     
    342342}
    343343
    344 int pmenu_item::handle_event(jwindow *parent, int x, int y, int w, int top,
     344int pmenu_item::handle_event(Jwindow *parent, int x, int y, int w, int top,
    345345                             event &ev)
    346346{
Note: See TracChangeset for help on using the changeset viewer.